Commit Graph

70 Commits

Author SHA1 Message Date
twinaphex
f6d04ff01e (Android) Input driver cleanups 2014-10-05 18:08:22 +02:00
twinaphex
1d7dea392d Use BIT_CLEAR/BIT_SET for android_input.c 2014-10-05 16:05:16 +02:00
twinaphex
ec9a217090 Change VID/PID passing to autodetect function - now int32_t
values
2014-09-30 20:35:58 +02:00
Toad King
b0ade7e010 add getVendorId and getProductId to android device detection (needs testing) 2014-09-30 12:31:37 -05:00
twinaphex
aea679456d (Input autodetect) Start setting up input autodetect so that it
can look at matching VID/PIDs
2014-09-30 18:18:02 +02:00
Vladimir Panteleev
d0e970f175 Fix/reimplement input flushing
This fixes:

- menu toggle erratically not working on Android
- stray input going to libretro core when resuming content
- bound keys triggering as soon as they're bound on Android
- menu key repeat also repeating keys which should not be repeated
- issues caused by relying on timeouts for flushing

Architectural changes:

- menu_ctx_driver_t::input_postprocess now takes state and old_state
  (this allows getting rid of menu_handle_t::trigger_state)

Related changes:

- remove some no-op input_postprocess handlers (same effect as NULL)
- menu_iterate now uses the parameters passed to it, instead of
  polling menu_input
- menu_input is now merged into meta_input_keys_pressed
2014-09-29 12:58:52 +00:00
twinaphex
8b309fbeaa Move clear_bit/get_bit/set_bit to input_common.h 2014-09-28 17:07:44 +02:00
twinaphex
715eeb0062 (Android) Fix build 2014-09-25 06:49:55 +02:00
twinaphex
94a269dbca (Android) Build fix 2014-09-18 05:54:39 +02:00
twinaphex
310438f15b Refactor away input_key_pressed_func 2014-09-17 00:29:47 +02:00
twinaphex
75d2e13dcb Make drivers non-const 2014-09-11 07:06:20 +02:00
Lioncash
ab1ab62a6d Fix some printf specifiers to the correct signed-ness 2014-09-05 19:43:32 -04:00
twinaphex
00f53247cd Split up input drivers into separate input_ and joypad_ files 2014-08-30 03:46:57 +02:00
twinaphex
c564252f2f (input/android_input.c) Remove extraneous else 2014-08-27 04:09:25 +02:00
twinaphex
cb09818d71 (Android) Code reformatting to stay within 80-char limit 2014-08-20 16:45:46 +02:00
twinaphex
2f244676be (Android) Input autodetect - get rid of two ifdefs 2014-08-19 15:07:22 +02:00
twinaphex
77ded89362 (Android) Remove android_input.c.rem 2014-08-19 14:39:42 +02:00
twinaphex
b8058cd4f7 (Android) Reduce amount of ifdefs for pad detection 2014-08-19 14:20:33 +02:00
twinaphex
3c2aed9564 (Android) Zeemote Steelseries moved to autoconfig 2014-08-19 12:03:03 +02:00
twinaphex
61bdfc8719 (Android) Input - get rid of device enums and device variable 2014-08-19 10:33:30 +02:00
twinaphex
c668877cb3 (Android) Move Madcatz PC USB Stick to autoconfig repo 2014-08-19 10:26:07 +02:00
twinaphex
efbd528260 (Android) Move more input autoconfigs to retroarch-autoconfig repo 2014-08-19 10:18:43 +02:00
twinaphex
12c0311f04 (Input) Get rid of unused devices_size 2014-08-14 00:56:40 +02:00
twinaphex
fab7792058 Get rid of set_keybinds - no longer used 2014-08-14 00:49:28 +02:00
twinaphex
9976b4581d (Android) Input - cleanups 2014-08-13 23:04:59 +02:00
twinaphex
1c35e607b5 (Android) Input binds - cleanups 2014-08-13 22:50:22 +02:00
twinaphex
a523f072ed (Android) Input binds - cleanups 2014-08-13 22:02:31 +02:00
twinaphex
95093580e6 (Android) Get rid of Saitek Rumble code - moved to autoconfig 2014-08-13 20:29:03 +02:00
twinaphex
78c930a020 (Android) Input - zeus_port is unused 2014-06-21 08:27:07 +02:00
twinaphex
4dc0e97ea1 (Android) Refactor more code 2014-06-21 06:43:21 +02:00
twinaphex
38a05b5217 (Android) More refactorings to do with pad autoinput code 2014-06-21 06:35:52 +02:00
twinaphex
f65950521e (Android) Rename handle_hotplug_get_device_name into android_input_get_id_name 2014-06-21 06:17:10 +02:00
twinaphex
5deb9a31e6 (Android) Create helper function android_input_get_id_port 2014-06-21 05:58:09 +02:00
twinaphex
c6a0c67022 (Android) Input cleanup 2014-06-21 04:42:46 +02:00
twinaphex
c090ee634c (Android) Remove debug_input_enable 2014-06-20 07:03:06 +02:00
twinaphex
5185dd276a (Android) Deopaque some leaf functions in input driver 2014-06-17 20:25:47 +02:00
l3iggs
2f63e0b7ee xbox 360 wirelss receiver fix
A xbox 360 controller wireless receiver (http://support.xbox.com/en-US/xbox-on-other-devices/connections/xbox-360-wireless-gaming-receiver-windows) reports itself as "Xbox 360 Wireless Receiver" (typically) or "Microsoft Corp. Xbox 360 Wireless Adapter" (possibly) so it's detection should not contingent on finding "Microsoft" in the name string.
Its d-pad reports different button codes than a wired 360 controller so we need a new configuration for this pad.
2014-06-14 23:24:03 -07:00
twinaphex
e74d85718e (Android) Take out Broadcom Bluetooth HID detection for now - it will
need more heuristics in order to detect all the pads correctly
2014-06-14 03:43:25 +02:00
twinaphex
8ee740a538 (Android) Implement TTT HT default binds 2014-06-14 03:42:07 +02:00
twinaphex
341230c106 (Android) Add Nyko Playpad Pro/Mayflash Wii Classic Pro/SZMy Dual Wii
default binds
2014-06-14 03:02:14 +02:00
twinaphex
66ddb16e08 (Android) Add more default binds 2014-06-14 01:11:52 +02:00
twinaphex
d1c7cd650f (Android) Add Sega Virtua Stick default binds 2014-06-13 18:07:49 +02:00
twinaphex
b7b0e520ef (Android) Add default binds for MUCH iRead i5 and FC30 2014-06-13 17:44:49 +02:00
twinaphex
a639d85aff (Android) Add Supersmart joy 2 default binds 2014-06-13 07:36:45 +02:00
twinaphex
84fd553025 (Android) Add JXD devices to autonconf 2014-06-12 04:23:32 +02:00
twinaphex
232ef7243a (Android) Add default binds for Wikipad, Archos Gamepad and TOMMO
Neo-Geo X
2014-06-12 03:48:01 +02:00
twinaphex
ba5ebbdb7d (Android) Input - implement GameMID default binds 2014-06-12 03:00:26 +02:00
twinaphex
9e844b06b3 (Android) Input cleanup - don't need all these keycode enums anymore 2014-06-11 23:13:43 +02:00
twinaphex
1303be37b6 (Android) Input - cleanups to handle_hotplug - aim to remove enums for
devices eventually - anything that doesn't set name_buf right now still
needs to be converted to new autoconf system
2014-06-11 22:54:29 +02:00
twinaphex
648b3070e0 (Android) Add Sidewinder, PS2 WiseGroup, SideWinder Dual Strike
binds
2014-06-11 21:44:44 +02:00