mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Add capacitive sense gamepad events (#15627)
This commit is contained in:
parent
984fcdaa8a
commit
5b98c1cc2f
25 changed files with 457 additions and 27 deletions
|
|
@ -2213,6 +2213,16 @@ SDL_AppResult SDLCALL SDL_AppEvent(void *appstate, SDL_Event *event)
|
|||
}
|
||||
break;
|
||||
|
||||
case SDL_EVENT_GAMEPAD_CAPSENSE_TOUCH:
|
||||
case SDL_EVENT_GAMEPAD_CAPSENSE_RELEASE:
|
||||
#ifdef VERBOSE_CAPSENSE
|
||||
SDL_Log("Gamepad %" SDL_PRIu32 " capsense %u %s",
|
||||
event->gcapsense.which,
|
||||
event->gcapsense.capsense,
|
||||
event->gcapsense.down ? "touch" : "release");
|
||||
#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