59 Commits

Author SHA1 Message Date
twinaphex
ed3ee2511f Cleanups - add local variable 2020-07-29 05:31:23 +02:00
rsn8887
78c9dbbd20 Fix input port assignments 2020-07-28 16:35:16 -05:00
twinaphex
2efb1600a8 (BTStack) Cleanup 2020-07-20 01:32:45 +02:00
twinaphex
de73e3bff9 Buildfixes 2020-07-19 03:25:30 +02:00
twinaphex
d97e590aaf Reimplement multi button state functions 2020-07-19 03:18:12 +02:00
twinaphex
cb5b22b6ac (Android) Refactor axis functions 2020-07-18 22:38:23 +02:00
twinaphex
08ad00f5d3 Start preparing for being able to grab multiple buttons at the same time 2020-07-18 19:51:14 +02:00
twinaphex
8b078662cd Change function signature of joypad driver's 'button' 2020-07-18 18:07:57 +02:00
orbea
bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
Stuart Carnie
5c1075127b
chore(metal): Separate legacy GL and Metal source
* Forks of Cocoa / Cocoa Touch to *_metal.* version
* Reverted original GL Cocoa / Cocoa Touch versions
* GL and Metal projects still build
2018-11-04 20:50:50 -07:00
twinaphex
a82bb0ec94 Create special type input_bits_t 2018-04-08 20:21:12 +02:00
gblues
0ae7ffe0d3 Clean up dumb compile warnings, fix crash bug
== DETAILS

- the free() method of the hid_driver_t interface needs its
  parameter defined as const in order for the compiler to stop
  complaining about losing const-ness.
- if a joypad list is created with <MAX_USERS slots in it, the
  destroy() function will crash because it assumes there are MAX_USERS
  entries.

  To do this, the allocate function creates n+1 slots, and gives the
  last slot a canary value that the destroy() method can then watch for
  when iterating through the list.
2017-12-30 04:43:27 +01:00
gblues
982d6893b0 Set the send_control pointer on the drivers
== DETAIL

One minor detail missed in the last commit: actually putting the
send_control function into the driver declaration. Woops.

Not doing the Wii U because it will be using the other methods.
2017-12-30 04:41:07 +01:00
gblues
5b37ced196 Update HID pad driver architecture
== DETAILS

The current HID implementation assumes a very low-level USB library
is being used. This causes a problem on Wii U, because the Cafe OS
only exposes a high-level interface.

To get these functions exposed to the HID pad drivers, I had to make
three changes:

1. I added the legacy "send_control" function to the HID driver
   interface
2. I modified the signature of pad_connection_pad_init() to send the
   driver pointer instead of the function pointer
3. I updated the HID pad drivers to keep the pointer to the driver
   instead of the function pointer, and updated the calls into the
   send_control function as appropriate
4. I updated the HID drivers to use the new pad init signature

== TESTING
Untested, in theory it should work without a hitch because at this
point all I've done is abstract things a little. I still need to
update the HID pad drivers to use the Wii U-specific calls as
appropriate.
2017-12-30 04:41:01 +01:00
twinaphex
f0c143766e Change to 256bit macros 2017-12-05 12:07:35 +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
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
David Walters
c5bdc02d6f replace uint64_t with retro_bits_t* for pad buttons state 2017-11-28 10:04:34 +00:00
twinaphex
612cb54cfe Merge input_hid_driver 2017-06-11 08:56:36 +02:00
twinaphex
126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
Twinaphex
aa2e7dc794 Silence warning 2017-02-26 03:53:05 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
e9f853ba93 Move (joykey == NO_BTN ) to input_joypad_driver 2016-12-11 08:44:55 +01:00
twinaphex
dad26e0956 Header cleanup 2016-11-05 14:10:30 +01:00
twinaphex
4571dc33fc header include cleanups 2016-09-05 17:29:19 +02:00
twinaphex
eea287d156 (BTStack HID) Create HAVE_DYNAMIC ifdefs 2016-06-27 01:11:49 +02:00
twinaphex
341e8f8f15 Cleanup 2016-02-05 14:35:16 +01:00
twinaphex
347a18cb30 Update input headers 2016-01-10 04:33:01 +01:00
Twinaphex
bcaa2f9aa7 (BTStack) Another buildfix 2015-11-18 02:12:05 +01:00
twinaphex
80d44ce333 (btstack_hid.c) Buildfixes 2015-11-18 02:11:06 +01:00
twinaphex
5edcb99b35 (btstack_hid.c) Cleanups 2015-11-18 02:06:03 +01:00
twinaphex
37d45643f9 (BTStack) Move btpad_set_inquery_state calls to btstack_hid.c 2015-11-18 01:57:45 +01:00
twinaphex
aa208993d5 btstack_hid.h - remove 2015-11-17 06:37:33 +01:00
twinaphex
de9be22071 (btstack_hid.c) Add RUN_LOOP_POSIX else conditional 2015-11-16 06:53:29 +01:00
twinaphex
170b4bbbe2 (btstack_hid.c) Add Cocoa ifdef 2015-11-16 06:52:26 +01:00
twinaphex
7b7869eb4c (btstack_hid.c) Cleanup 2015-11-16 04:14:48 +01:00
twinaphex
595646fea4 (btstack_hid.c) Move variables to top 2015-11-16 04:00:59 +01:00
Twinaphex
83b38cd5c1 Remove mfi_hid.h too 2015-11-16 03:56:08 +01:00
Twinaphex
db35a28e50 Revert "Refactor slots to be a part of input_hid_driver.c now"
This reverts commit 646ded9d1c96f02f1746e4e96572bb1aec60255d.
2015-11-16 03:48:51 +01:00
Twinaphex
f089fff42f Revert "Fix warnings"
This reverts commit 8d67d5175e198bf8d1cc607ecbf2290fbab6a83b.
2015-11-16 03:48:44 +01:00
twinaphex
8d67d5175e Fix warnings 2015-11-16 03:40:57 +01:00
twinaphex
646ded9d1c Refactor slots to be a part of input_hid_driver.c now 2015-11-16 03:39:40 +01:00
Twinaphex
57e8cfe1f9 Totally reimplemented MFi support 2015-11-16 02:39:38 +01:00
Twinaphex
bbb80a8ffa (BTStack HID) Should read axes too from apple struct 2015-11-15 23:45:03 +01:00
Twinaphex
6c6a293388 (MFi) Build fixes 2015-09-16 03:40:16 +02:00
twinaphex
346f44a7da (MFI) Start adding own button state 2015-09-16 03:29:38 +02:00
twinaphex
e654c5cb65 Header cleanups 2015-09-05 20:53:56 +02:00
twinaphex
123b85dbb0 Change returntype of pad_connection_init 2015-06-13 01:40:55 +02:00
twinaphex
87d9834d06 Move dylib.c to libretro-common 2015-05-08 09:49:49 +02:00