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
The text was updated successfully, but these errors were encountered:
Bastczuak
changed the title
Event field which differs for ControllerDeviceAdded and ControllerDeviceRemoved
Event field "which" differs for ControllerDeviceAdded and ControllerDeviceRemoved
Jul 29, 2019
Hey there @Cobrand ! Been using SDL2 for some time and came across the Rust bindings not so long ago. Was taking a look at the repo's Issues and noticed #907 was merged so I guess you could close this issue.
Hey,
while implementing the events
ControllerDeviceAdded
andControllerDeviceRemoved
, I realized that they have different data types for thewhich
field.One is
u32
the other one isi32
https://rust-sdl2.github.io/rust-sdl2/sdl2/event/enum.Event.html#variant.ControllerDeviceAdded.Is that on purpose or a mistake? Because the official sdl wiki says its always sint32 https://wiki.libsdl.org/SDL_ControllerDeviceEvent.
Greetings
The text was updated successfully, but these errors were encountered: