diff options
author | bunnei <bunneidev@gmail.com> | 2015-03-08 03:05:56 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-03-10 18:05:17 -0400 |
commit | 1a904ded40c87c41c404cfe5e74722c0a6554926 (patch) | |
tree | 3691ced6a6cc6b5451df361392c1d079b80430df /src/core/hle/service/hid/hid.h | |
parent | 3229b048d9b4f16433fb1c5d623e6b79bc1a2d93 (diff) |
HID: Added functions to emulate the touchpad.
Diffstat (limited to 'src/core/hle/service/hid/hid.h')
-rw-r--r-- | src/core/hle/service/hid/hid.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index cd626324..f2affb5c 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -180,6 +180,19 @@ void PadButtonRelease(const PadState& pad_state); */ void PadUpdateComplete(); +/** + * Signal that the touchpad has been pressed + * @param x Touchpad x-coordinate in bottom screen pixels (between 0 and 320) + * @param y Touchpad y-coordinate in bottom screen pixels (between 0 and 240) + */ +void TouchPress(u16 x, u16 y); + +/// Signal that touchpad has been released +void TouchRelease(); + +/// Signal that touchpad updates have been completed +void TouchUpdateComplete(); + void HIDInit(); void HIDShutdown(); |