mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 08:18:41 +00:00
Add capacitive sense gamepad events
This commit is contained in:
parent
71979477c7
commit
b4091523db
25 changed files with 453 additions and 27 deletions
|
|
@ -2213,6 +2213,16 @@ SDL_AppResult SDLCALL SDL_AppEvent(void *appstate, SDL_Event *event)
|
|||
}
|
||||
break;
|
||||
|
||||
case SDL_EVENT_GAMEPAD_CAPSENSE_DOWN:
|
||||
case SDL_EVENT_GAMEPAD_CAPSENSE_UP:
|
||||
#ifdef VERBOSE_CAPSENSE
|
||||
SDL_Log("Gamepad %" SDL_PRIu32 " capsense %u %s",
|
||||
event->gcapsense.which,
|
||||
event->gcapsense.capsense,
|
||||
event->gcapsense.down ? "activated" : "deactivated");
|
||||
#endif /* VERBOSE_CAPSENSE */
|
||||
break;
|
||||
|
||||
case SDL_EVENT_MOUSE_BUTTON_DOWN:
|
||||
if (virtual_joystick && controller && controller->joystick == virtual_joystick) {
|
||||
VirtualGamepadMouseDown(event->button.x, event->button.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue