Brad Parker
1d3e1a6962
DOS/DJGPP buildfix
2017-01-20 18:23:45 -05:00
twinaphex
a5e4ea2f33
C89_BUILD fix
2016-12-24 01:47:01 +01:00
Dave Leaver
f7c6574b37
Correctly handle adding controllers if we fail to match them to the known pad_map.
2016-12-16 20:16:55 +13:00
twinaphex
afe67ca254
C89/C90 don't support bitfields on uint8_t - work around this
2016-06-07 14:47:54 +02:00
twinaphex
974d3245d2
Fix logically dead code warnings
2016-05-23 22:04:00 +02:00
twinaphex
4a7ab8366b
Move libretro.h headers to libretro-common/include
2016-05-10 19:03:53 +02:00
twinaphex
4f2d1d7c93
Silence warning 'val may be unused uninitialized in this function'
2016-04-21 07:22:26 +02:00
twinaphex
97d5a971a4
Change header includes
2016-04-17 07:34:01 +02:00
Ernesto Ramirez
c4f2de321a
(GX) Added PS2/PSX Controller Adapter for HID driver.
2016-04-16 19:33:17 -05:00
twinaphex
24f5275001
Use wiiugca for non-Wii too
2016-02-04 23:49:04 +01:00
twinaphex
407d85f604
Use nesusb/snesusb for non-Wii too
2016-02-04 23:43:33 +01:00
netux79
bca4ccb155
(GX) Refactor of the Wii USB HID support. Now it's working!
...
In order to have a controller working you need:
1) Have a matching HID autoconfig file in autoconfig/hid for your controller.
2) Create a "connect" driver for the pad in "input/connect" folder (source code of RA).
3) Once you are in RA, change the joystick driver to HID and restart.
4) You may be now able to use you USB HID compatible pad in RA.
I included some "connect" drivers as an example. It also need to include them for compilation.
2016-02-04 17:01:03 -05:00
twinaphex
2e8f015de3
Cleanups
2016-02-04 21:07:02 +01:00
twinaphex
454abdee48
stdstring - create string_is_equal
2016-01-20 04:07:24 +01:00
twinaphex
2caa529347
Change VID/PID again
2016-01-14 09:56:07 +01:00
twinaphex
5dd10f1d45
pad_connection_pad_init - cleanup
2016-01-14 09:53:00 +01:00
twinaphex
144b6aed9e
Cleanup
2016-01-14 09:52:20 +01:00
twinaphex
974e8d6ce2
(joypad_connection.c) Cleanups
2016-01-14 09:51:17 +01:00
twinaphex
ec6f70603b
Add PID/VID for PS3 pad knockoff
2016-01-14 09:03:04 +01:00
twinaphex
347a18cb30
Update input headers
2016-01-10 04:33:01 +01:00
twinaphex
acb4682781
get rid of unused variable
2015-12-23 04:22:25 +01:00
twinaphex
d76d857166
Turn into C89-compatible comment
2015-12-13 00:01:44 +01:00
dibas
f66729c012
Calibrate Wii U Pro Controller analogue sticks.
2015-12-12 21:47:45 +01:00
twinaphex
5f296ea402
Fix hatvalues
2015-12-12 20:55:09 +01:00
dibas
0c749a6181
Implemented additional checks for Nintendo controllers.
2015-12-12 20:41:52 +01:00
twinaphex
88d54336c7
(wiiupro) Add stub axis implementation
2015-12-12 20:38:23 +01:00
Twinaphex
d85595ca67
Put Wii-U Pro pad on top of Wii Classic pad in list
2015-12-12 20:06:10 +01:00
twinaphex
8516e3350f
Change send_control
2015-12-12 19:33:04 +01:00
twinaphex
e529d76aec
Turn buttons into booleans
2015-12-12 19:10:50 +01:00
twinaphex
9394294956
(joypad_connection) Stub Wii U Pro implementation - untested
2015-12-12 18:30:17 +01:00
twinaphex
d70d09ad8d
(connect_ps4.c) Cleanup
2015-12-12 17:58:40 +01:00
twinaphex
cbb3535854
joypad_connection.c - include stdlib.h for calloc
2015-12-05 13:24:15 +01:00
twinaphex
a3c34a7813
Cleanups
2015-11-28 02:31:19 +01:00
twinaphex
a6ccc188a8
Rename input_common.c to input_config.c
2015-11-28 02:22:58 +01:00
twinaphex
53aa251008
(joypad_connection.h) Cleanups
2015-11-17 06:54:59 +01:00
twinaphex
790bb0d0d6
Minor code cleanups based on static code analysis
2015-09-28 22:07:40 +02:00
twinaphex
5465da0139
Rename rarch_sleep to retro_sleep
2015-09-22 18:55:14 +02:00
twinaphex
8ca8b43545
Take out retro_endianness.h include out of retro_miscellaneous.h
2015-09-14 03:34:05 +02:00
twinaphex
f95049e99c
Add wiiusb_hid driver courtesy of @xerpi
2015-08-30 09:48:38 +02:00
twinaphex
195aba50b2
Try to avoid some symbol conflicts
2015-08-29 14:20:39 +02:00
slotek
7431529e89
Restore generic Mac OS X joypad functionality
2015-07-29 10:12:31 -06:00
twinaphex
135ee2f503
Use UINT64_C(1) everywhere instead of 1ULL
2015-07-12 07:53:46 +02:00
twinaphex
e74e402cdc
More C89 build fixes
2015-06-30 14:37:11 +02:00
twinaphex
d61ad058b4
Some CXX_BUILD fixes
2015-06-26 12:38:33 +02:00
twinaphex
0d50840749
(joypad_connection.c) Cleanups
2015-06-25 18:25:20 +02:00
twinaphex
1b34dd4ce0
Some more CXX_BUILD fixes
2015-06-25 17:36:31 +02:00
twinaphex
0e2345227a
Some CXX_BUILD fixes
2015-06-25 17:25:09 +02:00
twinaphex
35402884e5
(connect_wii.c) Cleanups
2015-06-13 01:59:26 +02:00
twinaphex
123b85dbb0
Change returntype of pad_connection_init
2015-06-13 01:40:55 +02:00
Twinaphex
d2abe61e30
(joypad_connection.c) pad_connection_has_interface - pad >= 0 would
...
always be true
2015-04-20 12:12:32 +02:00
twinaphex
2087a41f20
(connect) Style nits
2015-04-07 18:49:21 +02:00
Toad King
3c67a80713
fix crash on shutdown in libusb_hid
2015-04-06 22:21:28 -05:00
Toad King
5701f4f73a
libusb updates, still need to figure out config issue preventing keys being registered
2015-04-06 22:07:59 -05:00
twinaphex
b263df08f6
(joypad_connection.c) Cleanups
2015-04-04 23:44:02 +02:00
twinaphex
4c7c1094e2
(joypad_connection.c) Remove unused is_gcapi
2015-04-04 23:38:19 +02:00
twinaphex
35e273bcdb
Make pad_connection_find_vacant_pad non-static
2015-04-04 23:34:04 +02:00
twinaphex
31b6323094
Move apple_joypad_connect_gcapi to apple_gamecontroller.m and
...
make it a static function
2015-04-04 23:33:01 +02:00
twinaphex
52312b51a7
pad_connection_pad_init: improve detection
2015-04-04 16:42:38 +02:00
twinaphex
5e83eefd81
Add VID/PID detection for joypad connection
2015-04-03 23:30:51 +02:00
twinaphex
b0d740ea09
(libusb) Further fleshing out
2015-04-03 18:52:48 +02:00
twinaphex
9d5f44a7c6
(connect_wii.c) Cleanups
2015-04-03 03:14:57 +02:00
twinaphex
05b8fbf1aa
(connect_wii.c) hidpad_wii_get_axis - style nits
2015-04-03 03:07:44 +02:00
Twinaphex
b9d244bd3b
(connect_wii.c) Refactor hidpad_wii_axis
2015-04-03 03:06:37 +02:00
twinaphex
e7c7b55004
(connect_wii.c) Dehardcode some magic numbers
2015-04-03 02:56:37 +02:00
twinaphex
7665226f4c
(connect_wii.c) Get rid of two unused macros
2015-04-03 02:52:20 +02:00
twinaphex
5fd1ff826a
(input) Namespace functions
2015-04-03 01:37:20 +02:00
Twinaphex
79431fcc7e
(connect_wii.c) Change type of state variable
2015-04-02 22:46:11 +02:00
Twinaphex
682ec250eb
(connect_wii.c) Fix
2015-04-02 20:48:38 +02:00
twinaphex
e0a5a77034
(connect_wii.c) Cleanups
2015-04-02 20:27:47 +02:00
twinaphex
b2a2af2355
(connect_wii.c) Buildfix
2015-04-02 19:55:45 +02:00
twinaphex
469b939dfc
(connect_wii.c) Don't rely on htonl/htons for endian byte swapping
2015-04-02 19:52:47 +02:00
twinaphex
8bd0253c27
(connect_wii.c) Cleanups
2015-04-02 18:52:58 +02:00
twinaphex
6433cdf2e7
(input/connect) Cleanups
2015-04-02 18:48:44 +02:00
twinaphex
6ea55bfaa9
(connect_ps4.c) Fix condition check
2015-04-02 18:28:29 +02:00
twinaphex
f8823836de
(connect_wii.c) Get rid of 'byte' typedef
2015-04-02 18:12:21 +02:00
twinaphex
b9e6b014e3
Start preparing joypad_connection code for cross-platform purposes
2015-04-02 17:49:32 +02:00
Twinaphex
013038d3ef
(connect_ps4.c) Cleanups
2015-04-01 01:23:43 +02:00
Twinaphex
28a85d9331
(connect_ps4.c) Make analog work
2015-04-01 00:20:39 +02:00
Twinaphex
467c007864
(connect_ps4.c) PS4 pad works now - TODO: analog/rumble (potential FUTURE: touchpad and other stuff)
2015-03-31 22:28:56 +02:00
Twinaphex
7e97764882
(connect_ps4.c) Update
2015-03-31 21:42:43 +02:00
Twinaphex
a4190a9c3f
(PS4/connect_ps4.c) Update
2015-03-31 21:40:22 +02:00
Twinaphex
ebd85ea02b
(PS4/joypad_connection) PS4 joypad is starting to work
2015-03-31 21:18:21 +02:00
Twinaphex
047fdbd3fc
(PS4/joypad_connection) Changes
2015-03-31 19:23:06 +02:00
Twinaphex
da428a70d3
(Apple) apple_joypad_hid.c is going to become a more generic
...
'HID joypad' driver
2015-03-31 15:14:39 +02:00
twinaphex
cf4b43f3fa
(joypad_connection) Cleanups
2015-02-15 03:59:57 +01:00
twinaphex
65f6d2253d
(joypad_connection.c ) change 'used' to 'connected'
2015-02-15 03:54:38 +01:00
twinaphex
738d70d2f8
Add get_buttons callback
2015-02-15 01:57:29 +01:00
Twinaphex
da24b62de9
(Apple) Build fixes
2015-01-19 05:05:41 +01:00
twinaphex
824f00be15
(input/connect) Cleanups
2015-01-19 05:01:31 +01:00
twinaphex
453321c50b
Start updating headers
2015-01-07 17:46:50 +01:00
twinaphex
7a456c6c3a
Rename MAX_PLAYERS to MAX_USERS
2015-01-05 01:58:00 +01:00
twinaphex
f08f78e86a
(joypad_connection) start calling 'connect' function 'init'
...
and 'disconnect' 'deinit'
2014-10-22 07:59:52 +02:00
twinaphex
c62d52de0f
Start properly implementing libretro SDK for boolean.h include
...
header, glsym, and rthreads
2014-10-21 05:05:52 +02:00
twinaphex
0fb301fa43
(joypad/connect) Change 'index' local variables
2014-10-20 20:32:41 +02:00
twinaphex
303aaede17
Update to connect_ps3.c
2014-10-16 22:37:06 +02:00
twinaphex
7c842f9342
More stdio.h header include removals
2014-10-16 07:29:42 +02:00
Twinaphex
c9bd4ad589
Comment out unused code
2014-10-15 03:25:36 +02:00
Twinaphex
800bf13846
(joypad_connection.h) Fix 'no previous prototype for function' warning
2014-10-14 19:01:52 +02:00
Lioncash
316870201f
Fix possible memory leaks in hidpad_ps3_connect, hidpad_ps4_connect, and hidpad_wii_connect
2014-10-13 17:39:14 -04:00
Twinaphex
fdd616abcb
(joypad_connection.c) Refactor pt. 2
2014-10-06 01:49:00 +02:00
Twinaphex
29f640fe5d
(joypad_connection.c) refactor pt. 1
2014-10-06 00:37:11 +02:00
twinaphex
21d9185e96
(connect_ps3.c) Optimize
2014-10-05 03:48:55 +02:00
Twinaphex
df0fbb7cf3
(OSX) More optimal polling of buttons/axis from pad_connection
2014-10-05 03:28:43 +02:00
twinaphex
d4a14c4cb9
Move joypad_connection code to input/connect
2014-10-04 23:02:48 +02:00