You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not seeing "SDL_TOUCH_MOUSEID" in the Rust bindings. Am I overlooking something? The #define comes from C source at "./include/SDL_touch.h", and is used to differentiate between simulated mouse events and touch events on touch enabled devices.
/* Used as the device ID for mouse events simulated with touch input */
#define SDL_TOUCH_MOUSEID ((Uint32)-1)
/* Used as the SDL_TouchID for touch events simulated with mouse input */
#define SDL_MOUSE_TOUCHID ((Sint64)-1)
See also: https://wiki.libsdl.org/SDL_MouseMotionEvent for more context. I'm not quite following how "sdl2-sys/sdl_bindings.rs" is generated (from "sdl2-sys/build.rs"?), or why it would be missing.
The text was updated successfully, but these errors were encountered:
Ah, good find. The exact same issue in this comment on that thread. Seems like a minor enough issue that it wouldn't be worth breaking the automated build. Easy enough to define in my program. For future searchers on this topic:
I'm not seeing "SDL_TOUCH_MOUSEID" in the Rust bindings. Am I overlooking something? The
#define
comes from C source at "./include/SDL_touch.h", and is used to differentiate between simulated mouse events and touch events on touch enabled devices.See also: https://wiki.libsdl.org/SDL_MouseMotionEvent for more context. I'm not quite following how "sdl2-sys/sdl_bindings.rs" is generated (from "sdl2-sys/build.rs"?), or why it would be missing.
The text was updated successfully, but these errors were encountered: