Giter Club home page Giter Club logo

Comments (7)

skyjake avatar skyjake commented on June 15, 2024

Unfortunately, this looks like an SDL bug. The value of SDL_IsTextInputActive() returns 1 after launching the app even though text input has never been active. Only after activating and deactivating text input the function returns 0.

I can work around this, of course.

from lagrange.

sikmir avatar sikmir commented on June 15, 2024

Another problem with SDL_IsTextInputActive:

lagrange> /build/source/src/app.c: In function 'processEvents_App':
lagrange> /build/source/src/app.c:1916:26: error: implicit declaration of function 'SDL_IsTextInputActive'; did you mean 'SDL_IsTextInputStarted'? [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Werror=implicit-function-declaration8;;]
lagrange>  1916 |                     if (!SDL_IsTextInputActive()) {
lagrange>       |                          ^~~~~~~~~~~~~~~~~~~~~
lagrange>       |                          SDL_IsTextInputStarted

from lagrange.

skyjake avatar skyjake commented on June 15, 2024

Which version of SDL is this built against? @sikmir

from lagrange.

sikmir avatar sikmir commented on June 15, 2024

Which version of SDL is this built against? @sikmir

2.26.3, that's what we have on NixOS.

from lagrange.

skyjake avatar skyjake commented on June 15, 2024

Does commit e8a4dad compile for you? I've removed the calls to this SDL function.

from lagrange.

sikmir avatar sikmir commented on June 15, 2024

Does commit e8a4dad compile for you? I've removed the calls to this SDL function.

Yes, that's OK now. I've added the patch NixOS/nixpkgs#222936.

from lagrange.

Trit34 avatar Trit34 commented on June 15, 2024

Fixed in 1.15.7. Thank you!

from lagrange.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.