mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
support gamepad hotplug
This commit is contained in:
parent
4cc19c3382
commit
943c4fb77b
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ static inline bool HandleEvent(struct Game* game, ALLEGRO_EVENT* ev) {
|
|||
#endif
|
||||
}
|
||||
break;
|
||||
case ALLEGRO_EVENT_JOYSTICK_CONFIGURATION:
|
||||
al_reconfigure_joysticks();
|
||||
break;
|
||||
case ALLEGRO_EVENT_JOYSTICK_AXIS:
|
||||
#ifdef ALLEGRO_WITH_XWINDOWS
|
||||
// XBox pads on GNU/Linux have messed up stick/axis ordering
|
||||
|
|
Loading…
Reference in a new issue