682 Commits

Author SHA1 Message Date
David Walters
cbfdd7bbd9 udev lightgun fixes 2017-12-03 09:40:36 +00:00
David Walters
c453675d38 lightgun support in udev 2017-12-02 13:24:17 +00:00
Twinaphex
5f0a9fffbb
Merge pull request #5827 from hiddenasbestos/input_driver_x11
Add new lightgun/mouse-bind features to X11 driver
2017-12-02 09:18:17 +01:00
twinaphex
6c69002ab4 Start adding not-complete kqueue codepaths - bparker - see if you can
finish this up
2017-11-30 07:28:59 +01:00
twinaphex
62280439b7 Rename epfd to fd 2017-11-30 07:00:25 +01:00
David Walters
5f095677a7 fix for wiiu build (#5826) 2017-11-29 15:55:31 -05:00
David Walters
7dfcc169de Add new lighgun/mouse-bind features to X11 driver 2017-11-29 18:32:58 +00:00
David Walters
f09477d46a additional compile fixes 2017-11-28 10:36:16 +00:00
David Walters
e06290a06c updated winraw driver for new lightgun/mouse binding api 2017-11-27 12:51:06 +00:00
David Walters
59c188f75c Implement new lightgun API 2017-11-26 17:09:15 +00:00
David Walters
cdb5a656f2 dinput: only support hardware mouse index 0 2017-11-26 15:40:27 +00:00
David Walters
9682e2777b support for mouse button binds in Windows input drivers 2017-11-26 12:55:17 +00:00
David Walters
41df4a0555 Support for mouse buttons 4&5 2017-11-17 12:00:24 +00:00
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
Twinaphex
affd56f293 Merge pull request #5515 from casdevel/winraw-lightgun
Add lightgun device capability
2017-10-09 02:42:09 +02:00
Zoran Vuckovic
5c46e176d5 Add keyboard/mouse device index logging 2017-10-07 06:59:45 +02:00
Zoran Vuckovic
082629ccd5 Add lightgun device capability 2017-10-06 08:19:22 +02:00
Zoran Vuckovic
12d0f4107a Use int32_t instead of __s32 2017-10-05 10:00:20 +02:00
Zoran Vuckovic
135b636bd4 Add "absolute" mouse support 2017-10-05 05:18:53 +02:00
twinaphex
cf9ab18cab (360) Buildfix 2017-10-03 04:21:25 +02:00
twinaphex
d10de20bff Start compiling Griffin as C for 360 - C89 fixes 2017-10-03 04:11:41 +02:00
twinaphex
ff48af4d06 Update 2017-09-28 18:57:00 +02:00
twinaphex
9eba2c8e39 Fix CXX_BUILD on Windows 2017-09-28 18:53:09 +02:00
twinaphex
a3ded01b64 Cleanups 2017-09-27 23:16:37 +02:00
Zoran Vuckovic
d47de4b17e Fix mouse "absolute" move handling 2017-09-12 12:36:27 +02:00
Zoran Vuckovic
84d33fb847 Disable keyboard input if window is not active 2017-09-10 05:50:10 +02:00
twinaphex
e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
Ash
6b5aef09a1
[WiiU] DRC touch support as pointer device
Allow using the Gamepad's touch screen as a RETRO_DEVICE_POINTER.
Methodology could use some work, had to add an extra axis to
joypad in order to get the data transferred into the input driver.
Feel free to change this.
Needs to emulate RETRO_DEVICE_LIGHTGUN to really be useful.
Potential for Wiimote IR in future.

Partially addresses libretro/RetroArch#5294
2017-08-19 17:40:56 +10:00
twinaphex
ae2435cf16 Silence some more C89_BUILD warnings 2017-08-12 18:15:26 +02:00
twinaphex
5101895cc9 (dinput) Buildfix 2017-08-09 16:53:06 +02:00
twinaphex
4e49155147 Cleanup 2017-08-09 15:54:24 +02:00
twinaphex
ee275c85d8 (dinput.c) Cleanups 2017-08-09 15:51:27 +02:00
twinaphex
ca80f13b2b Try to be somewhat safer here in case of null pointer derefences 2017-08-09 02:42:19 +02:00
radius
f5360d0d82 extra devices 2017-08-04 01:17:32 -05:00
radius
2ef75cb300 buildfix 2017-08-04 01:11:31 -05:00
radius
a6b24b4d42 fire tv hack 2017-08-04 01:09:05 -05:00
Zoran Vuckovic
2a92b22128 Add mice info log 2017-07-28 13:03:26 +02:00
Brad Parker
b9036e26a7 fix buffer overflow 2017-07-22 16:08:05 -04:00
Zoran Vuckovic
aa99f4f5ba Disable keyboard input and restrict mouse input in some cases 2017-07-18 01:16:48 +02:00
Brad Parker
e067dac2a4 fix keyboard regression with mupen cores 2017-07-08 17:39:29 -04:00
twinaphex
dc521b42d1 Cleanup 2017-07-05 11:55:17 +02:00
twinaphex
ffc393cafc Get rid of unused variables 2017-07-02 20:58:32 +02:00
Paolo Bonzini
d1dc2e9670 add support for remote control devices and other ID_INPUT_KEY devices
* the remote control presents itself as ID_INPUT_KEY, not
ID_INPUT_KEYBOARD.  However, ID_INPUT_KEYBOARD is a subset of
ID_INPUT_KEY.

* the remote control lacks the backspace and enter keys, which are hard
coded in RetroArch. It has "back" and "ok" instead, so map those to
RETROK_BACKSPACE and RETROK_ENTER as well.

Remote controls also have no ESC key, but that one is customizable
and I used the Power key of the remote (which already has a mapping
to RETROK_POWER).

The functionality provided is really the bare minimum, but it is enough
to teach a kid "press the power button here to watch TV"; compared to
pressing L1+R1+START+SELECT and navigating to the RetroArch's "quit"
menu item, that hopefully has more chances of success.
2017-07-02 10:50:00 +02:00
twinaphex
60296c0b7d Improve logs some more 2017-07-01 04:37:32 +02:00
radius
0a7968761f improve logging 2017-06-30 20:05:30 -05:00
twinaphex
fe829e5eb0 Fix C89_BUILD 2017-06-28 18:01:04 +02:00
twinaphex
20e7ac4280 Buildfix 2017-06-26 03:50:34 +02:00
twinaphex
411ade7fb9 Mingw buildfix 2017-06-26 03:47:47 +02:00
Twinaphex
5c5c5ecbdf Revert "udev input: support controlling the menu with a TV remote control" 2017-06-22 20:53:07 +02:00
Twinaphex
8068bcccbe Merge pull request #5076 from bonzini/master
udev input: support controlling the menu with a TV remote control
2017-06-21 23:35:22 +02:00