twinaphex
422ce9396c
Cleanup - input_key_pressed
2017-12-18 06:14:48 +01:00
twinaphex
69f85556a3
Get rid of meta_key_pressed
2017-12-18 05:59:57 +01:00
twinaphex
7b210ccf37
Don't call meta key pressed if not bound
2017-12-18 05:49:17 +01:00
twinaphex
1978689dcb
Rewrite input_keys_pressed_iterate
2017-12-18 05:22:45 +01:00
twinaphex
9b9cf7b036
Cleanups
2017-12-18 05:13:57 +01:00
twinaphex
3c5d2f047c
Create input_keys_pressed_iterate
2017-12-18 05:09:16 +01:00
Twinaphex
26f483b22d
Merge pull request #5882 from hiddenasbestos/dolphinbar
...
Mayflash DolphinBar
2017-12-17 16:48:26 +01:00
David Walters
02f6301607
fix reversed logic
2017-12-17 12:46:21 +00:00
David Walters
adffa5fc4c
Fixes for overlay buttons
2017-12-17 12:36:18 +00:00
Brad Parker
8c0adf3594
move path_file_rename and path_file_remove into VFS
2017-12-14 13:32:26 -05:00
gblues
0f7de204f7
Last batch of whitespace cleanup (post-rebase)
...
-- looks like a few files committed with DOS line endings
2017-12-12 00:24:46 -08:00
gblues
6904101c44
Clean up trailing whitespace
...
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
c950613098
C comments
2017-12-11 11:28:48 +01:00
Peter Y. Hammond
b14598657c
Fixed a bug where the joypad devices were not always being assigned in the same order as they were numbered under /dev/input/. This showed up mainly when using an external USB Bluetooth dongle. In that case, controllers would be assigned often in reverse order.
2017-12-10 22:22:01 -07:00
Monroe88
cfde6a44db
input_driver: Map Delete key to Y button for non-unified menu keyboard controls
2017-12-09 14:17:54 -06:00
Fabio
0d58d9ca0d
Added label to wii controllers, inverted the right stick Y axis of classic controller
...
The right stick Y axis of classic controller was wrong
2017-12-09 08:24:19 +01:00
David Walters
124ddcd27a
Add dolphin bar VID/PID - treat like a wii over bluetooth connection
2017-12-07 23:44:29 +00:00
twinaphex
de9b0127f8
(MSVC) Buildfix
2017-12-06 04:33:54 +01:00
Andrés
0c9fce98a2
fix vid/pid enumeration on xinput controllers when the xinput controllers are interleaved with dinput ( #5872 )
2017-12-05 22:07:48 -05:00
Twinaphex
d881931254
Merge pull request #5867 from hiddenasbestos/more_devices
...
Don't limit available input devices to user count.
2017-12-06 01:43:52 +01:00
Brad Parker
f5ea4a0c65
dinput: add missing function parameter
2017-12-05 17:19:17 -05:00
David Walters
609bcb4dc2
fix device indexing
2017-12-05 22:03:56 +00:00
David Walters
0d189ae067
Don't limit available input devices to user count.
2017-12-05 21:21:29 +00:00
Brad Parker
bc4bbe79aa
don't define UNICODE at all, we don't need it and it causes dinput problems (names are wchar_t)
2017-12-05 14:26:59 -05:00
twinaphex
2bdf4a5bb4
update
2017-12-05 20:08:18 +01:00
twinaphex
408878a7e1
Start making it possible for xinput_joypad to be used without
...
DirectInput
2017-12-05 20:04:12 +01:00
Twinaphex
7ab7ed35b7
Merge pull request #5863 from bparker06/xinput
...
xinput: copy VID/PID from dinput so autoconfig does not rely solely on HID name
2017-12-05 20:01:16 +01:00
bparker06
4c9bde61b5
dinput: fix memory leak of joypad name
2017-12-05 13:54:15 -05:00
Brad Parker
35ab48ee61
xinput: copy VID/PID from dinput so autoconfig does not rely solely on HID name
2017-12-05 12:47:52 -05:00
twinaphex
f0c143766e
Change to 256bit macros
2017-12-05 12:07:35 +01:00
twinaphex
6c09661a64
Move defines to retro_miscellaneous.h
2017-12-05 10:42:37 +01:00
twinaphex
e94300a581
Get rid of a lot of RARCH_INPUT_STATE_BIT_ macros - replace them
...
with BIT128_ equivalents instead
2017-12-05 09:22:56 +01:00
twinaphex
3ccce249ea
Fixes hotkey issues with MSVC
2017-12-05 08:50:24 +01:00
neville
43f6a03110
(OSX PPC) Buildfixes
2017-12-04 02:59:06 +01:00
bparker06
78bf72e29e
blissbox: add atari pad type
2017-12-02 13:33:09 -05: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
Ash
bf3e256a43
[WiiU] Input: Make controller_patcher a compile-time option
...
As discussed in libretro#5357; controller_patcher is now optional. It's
off by default; though this could be changed with a simple makefile
tweak (ENABLE_CONTROLLER_PATCHER ?= 1, perhaps?)
To re-enable controller_patcher; append ENABLE_CONTROLLER_PATCHER=1 to
your usual make command.
controller_patcher was the only user of c++ constructors in the Wii U
port, so you'll need 26a006c
in your tree otherwise you will have a
blackscreen on startup.
2017-12-01 18:29:21 +11:00
David Walters
a9451822b5
Improved handling of libusb hotplug capability ( #5830 )
...
* Improved handling of libusb hotplug capability
* Only deregister hotplug callback if registration happened.
2017-11-30 10:30:46 -05: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
05578f0634
Show VID/PID values for unsupported devices. ( #5825 )
2017-11-29 15:56:18 -05: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
Brad Parker
5453853001
remove extra paren
2017-11-29 11:32:32 -05:00
Brad Parker
f41187df22
remove extra brace
2017-11-29 11:17:13 -05:00
Brad Parker
44b70efb68
style nits
2017-11-29 10:42:39 -05:00
Brad Parker
42e81dcef4
add back missing code from c5bdc02
2017-11-29 10:35:52 -05:00
Brad Parker
aa1f95b3d5
undo changes in c5bdc02
that reverted my previous commits: 34491a6
28c6237
1f58d9c
61bd9d7
2017-11-29 10:22:30 -05:00
Brad Parker
def24ef8eb
blissbox: print message if detecting update mode or old firmware versions, override vid/pid check for autoconfig profiles, misc comments
2017-11-28 21:25:54 -05:00
Brad Parker
2dd64d9c11
Initial blissbox support, requires firmware 2.0. Currently limited to platforms with libusb support.
2017-11-28 18:25:12 -05:00
David Walters
f09477d46a
additional compile fixes
2017-11-28 10:36:16 +00:00
David Walters
c5bdc02d6f
replace uint64_t with retro_bits_t* for pad buttons state
2017-11-28 10:04:34 +00:00
Brad Parker
61bd9d7d70
libusb: early return if we fail to get a config descriptor, otherwise the memory returned is invalid (and should not be freed either)
2017-11-27 11:30:29 -05:00
Brad Parker
1f58d9cd1f
comment
2017-11-27 11:30:29 -05:00
Brad Parker
28c6237b47
FreeBSD: support libusb hid input driver
2017-11-27 11:30:29 -05:00
Brad Parker
34491a6025
libusb: prevent crash on driver deinit when there are no pad connections
2017-11-27 11:30:29 -05:00
David Walters
e06290a06c
updated winraw driver for new lightgun/mouse binding api
2017-11-27 12:51:06 +00:00
twinaphex
cdf1d9a417
Indent nits
2017-11-27 03:53:46 +01:00
Twinaphex
d93b9ebf4d
Silence warning
2017-11-27 03:53:25 +01:00
twinaphex
dfebea9109
Cleanups
2017-11-26 22:58:36 +01:00
twinaphex
00d57af005
C89_BUILD fixes
2017-11-26 22:53:42 +01:00
twinaphex
e35394d4bd
Fix MSVC 2003 build
2017-11-26 22:41:34 +01:00
David Walters
59c188f75c
Implement new lightgun API
2017-11-26 17:09:15 +00:00
David Walters
dbd9bf3b46
New lightgun binds
2017-11-26 16:59:48 +00:00
David Walters
c733f96a16
listen for mouse buttons/wheel when binding input
2017-11-26 15:42:47 +00:00
David Walters
cdb5a656f2
dinput: only support hardware mouse index 0
2017-11-26 15:40:27 +00:00
David Walters
59812e9509
include mouse buttons in block hotkey check
2017-11-26 13:23:39 +00:00
David Walters
9682e2777b
support for mouse button binds in Windows input drivers
2017-11-26 12:55:17 +00:00
David Walters
25efae0630
Show mbutton binds on settings list; comma separate joy and key bins
2017-11-26 11:56:02 +00:00
David Walters
1d70fef70c
load/save mbutton assignments to retroarch config
2017-11-26 11:54:10 +00:00
David Walters
b190ac1943
Add 'mbutton' field to retro_keybind struct
2017-11-26 11:49:37 +00:00
David Walters
b3a53ac8ca
Show "---" for unbound controls, not "(Key: )"
2017-11-24 21:36:49 +00:00
Twinaphex
45fb685375
Merge pull request #5762 from hiddenasbestos/extend_input_bits
...
Extend input bind limit to 256
2017-11-24 14:48:53 +01:00
David Walters
5be7921445
reimplement using retro_bits_t; pass by ref; raise bind limit to 256
2017-11-24 11:19:17 +00:00
David Walters
5294d43bf1
use C89 compatible comment style
2017-11-24 09:28:26 +00:00
twinaphex
7ac5eda1e1
Rewrite input_mapper code - no longer have an internal pointer
...
inside input_mapper
2017-11-24 02:37:53 +01:00
David Walters
b0e383d5f0
Extend input bind limit to 128
2017-11-23 23:04:09 +00:00
Ash
efad07e89f
[WiiU] Add proper DRC touch scaling for non-720p resolutions
2017-11-19 17:18:03 +11:00
David Walters
795057bacf
Support for RETRO_DEVICE_INDEX_ANALOG_BUTTON
2017-11-17 22:46:23 +00:00
David Walters
41df4a0555
Support for mouse buttons 4&5
2017-11-17 12:00:24 +00:00
daniel jimenez
e91bae38cf
Introduce button mappings for generic usb controller
2017-11-13 22:08:24 -08:00
twinaphex
ac14f8bb2a
Rearrange some struct members
2017-11-12 17:02:14 +01:00
Twinaphex
b8df76271c
Merge pull request #5654 from QuarkTheAwesome/wiiu-warnings
...
[WiiU] Various warning fixes
2017-11-05 16:14:18 +01:00
Ash
6090aa8f8a
[WiiU] Account for 12px clamp on physical screen
...
Seriously, I think it's good now.
2017-11-04 20:58:25 +11:00
Ash
e39c820cee
[WiiU] Change up wiiu_joypad_name semantics
...
Prevents warnings from GCC around the possibility of a negative index
going into hidName.
2017-11-04 20:37:30 +11:00
Ash
fc79fec964
[WiiU] DRC Touch - scale to game image viewport
2017-11-04 16:14:28 +11: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
Glenn
ec806f65f9
fixed MFI controller being set to P2
2017-10-29 18:20:39 +11:00
Francisco José García García
03524278c6
Trying to fix L2/R2/L3/R3
...
Related to #5431
2017-10-25 21:05:15 +02:00
Maschell
05ef63fd08
[WII U] Fix for Issue #5556
...
This hopefully fixes the issues when you try to use 2 Controllers with
the same vid/pid at the same time.
Tested with 2 DS4 controller via the Hid to VPAD Network Client.
Adapters with multiple ports (like the official GC-Adapter) are still
working
2017-10-17 21:38:42 +02:00
Brad Parker
a7c8cc88e5
win32: support local multibyte encoding for file paths
2017-10-14 23:13:24 -04:00
Brad Parker
38c30667c5
fix include paths
2017-10-14 23:08:43 -04:00
twinaphex
c68db61188
Silence more Clang warnings
2017-10-11 22:49:13 +02: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
8238545bef
Cleanups
2017-10-04 06:53:47 +02:00
twinaphex
cf9ab18cab
(360) Buildfix
2017-10-03 04:21:25 +02:00