RetroArch/input/drivers
Ash a3e4a7612f
[WiiU] Fix DRC touch - proper scaling; press detection
Oops! Didn't do this quite right the first time round.
This commit fixes RETRO_DEVICE_ID_POINTER_PRESSED, which would always
return 0 due to to an implicit case to int16_t. Basically, we'd do
(val & 0x00080000) & 0xFFFF; which would return 0 every time. Fixed that
by wrapping it in a ternary. Yes, I know we could use a rotation, but
for a boolean value it really doesn't matter.
I also rewrote scaleTP to deal entirely in integers. While the
floating-point math was theoretically faster on PowerPC; it gets awkward
to cast -0x7FFF to a float.
Speaking of, the driver now actually conforms to the libretro API. Not
sure how I managed to not see the spec; but hey, now its fixed.
RETRO_DEVICE_POINTER_ID_X/Y will now return values between -0x7FFF and
0x7FFF like they're supposed to.

Big thanks to @r-type for hounding me to fix this.
Partially addresses #5294; we still need mouse emulation.
2017-11-04 15:01:58 +11:00
..
android_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
cocoa_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
cocoa_input.h Header update #1 2017-01-22 13:40:32 +01:00
ctr_input.c Cleanups 2017-09-27 23:16:37 +02:00
dinput.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
dos_input.c Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
gx_input.c Cleanups 2017-09-27 23:16:37 +02:00
linuxraw_input.c Rewrite other input drivers too 2017-06-10 11:22:24 +02:00
nullinput.c Header update #1 2017-01-22 13:40:32 +01:00
ps3_input.c Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
psp_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
qnx_input.c Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
rwebinput_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
sdl_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
udev_input.c Add keyboard/mouse device index logging 2017-10-07 06:59:45 +02:00
wayland_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
wiiu_input.c [WiiU] Fix DRC touch - proper scaling; press detection 2017-11-04 15:01:58 +11:00
winraw_input.c Add lightgun device capability 2017-10-06 08:19:22 +02:00
x11_input.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
xdk_xinput_input.c (360) Buildfix 2017-10-03 04:21:25 +02:00
xenon360_input.c Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00