RetroArch/input
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
..
common Silence another Coverity warning 2017-06-28 06:59:00 +02:00
connect Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
drivers [WiiU] Fix DRC touch - proper scaling; press detection 2017-11-04 15:01:58 +11:00
drivers_hid Fix includes of input_config 2017-08-30 23:14:27 -04:00
drivers_joypad [WiiU] Fix DRC touch - proper scaling; press detection 2017-11-04 15:01:58 +11:00
drivers_keyboard Fix includes of input_config 2017-08-30 23:14:27 -04:00
include/GameController
input_autodetect_builtin.c Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
input_defines.h (Android) Buildfix 2017-06-07 03:01:00 +02:00
input_driver.c Silence more Clang warnings 2017-10-11 22:49:13 +02:00
input_driver.h Turn into char pointer array 2017-09-27 20:11:44 +02:00
input_keymaps.c Revert "udev input: support controlling the menu with a TV remote control" 2017-06-22 20:53:07 +02:00
input_keymaps.h MSVC buildfix 2017-06-06 23:19:07 +02:00
input_mapper.c C89 buildfix 2017-09-16 19:06:55 -04:00
input_mapper.h implement keymapper 2017-09-11 00:20:21 -05:00
input_overlay.c implement keymapper 2017-09-11 00:20:21 -05:00
input_overlay.h (input overlay) Reorder variables in struct 2017-09-29 17:11:42 +02:00
input_remapping.c win32: support local multibyte encoding for file paths 2017-10-14 23:13:24 -04:00
input_remapping.h input remapping cleanups 2017-09-11 22:49:39 -05:00
input_remote.c Cleanups 2017-09-28 00:53:13 +02:00
input_remote.h Header update #1 2017-01-22 13:40:32 +01:00