163 Commits

Author SHA1 Message Date
Mike Robinson
6203c3162e Fallback to first working joypad driver if init failed
Fallback to the old behavior on init failure so there's no
regression if the user did not select a working joypad driver.
2014-10-03 03:05:35 +01:00
Mike Robinson
b165b8fa82 Fix joypad driver setting
input_common.c was loading the first available joypad driver no
matter what input driver was selected, and the joypad driver menu
was non-functional. Allow choice of joypad driver from the menu.
2014-10-03 01:40:47 +01:00
twinaphex
532938c5fa Refactor meta_input_keys_pressed 2014-10-03 00:55:44 +02:00
twinaphex
8a1f15c460 Move rarch_check_block_hotkey to input/input_common.c and make
the function static
2014-10-03 00:46:14 +02:00
twinaphex
d43b9082e7 Move input_autodetect code to input_autodetect.c 2014-09-30 17:48:31 +02:00
Twinaphex
9f5031188b Merge pull request #1066 from CyberShadow/pull-20140930-083313
Refactor old_state out of meta_input_keys_pressed into rarch_main_iterate
2014-09-30 10:40:43 +02:00
Vladimir Panteleev
0c104ffef8 Refactor old_state out of meta_input_keys_pressed into rarch_main_iterate 2014-09-30 08:35:41 +00:00
twinaphex
ca9bfa18e4 Refine meta_input_keys_pressed 2014-09-29 21:23:35 +02:00
twinaphex
c8ec8d9a7d Remove unused joy_keys_pressed function now 2014-09-29 21:01:59 +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
b2b9cf5717 Rewrite input_push_analog_dpad 2014-09-26 12:56:03 +02:00
twinaphex
d94e8329e8 Move stuff to config.features.h 2014-09-25 08:12:58 +02:00
twinaphex
aa6d779fbc Added 1-second timeout when binding hotkeys 2014-09-25 04:44:24 +02:00
twinaphex
8015061720 Refactor menu_input - add input_keys_pressed in addition to
meta_input_keys_pressed
2014-09-25 04:19:09 +02:00
twinaphex
eeda9df418 input_common.c - small cleanups 2014-09-16 07:06:23 +02:00
Higor Eurípedes
52f300b3ac (Makefile.common) Add missing xinput autoconfig object 2014-09-13 23:09:14 -03:00
Lioncash
64272ef327 Squash some more potential null pointer dereferences 2014-09-11 23:04:02 -04:00
twinaphex
75d2e13dcb Make drivers non-const 2014-09-11 07:06:20 +02:00
twinaphex
689cd6322f Indenting / style nits 2014-09-09 18:15:17 +02:00
Twinaphex
6fdc22eb0b Merge pull request #943 from lioncash/printf-fmt
Fix some printf specifiers to the correct signed-ness
2014-09-06 03:40:26 +02:00
twinaphex
24500dfeb5 (Android) Build fixes 2014-09-06 03:39:37 +02:00
twinaphex
d7ca4d584c (Android) KEY_DOLLAR and KEY_EURO not defined on Android 2014-09-06 03:32:55 +02:00
Lioncash
ab1ab62a6d Fix some printf specifiers to the correct signed-ness 2014-09-05 19:43:32 -04:00
Higor Eurípedes
a01e43cc6d Add missing linuxraw/udev keys 2014-09-04 12:51:34 -03:00
twinaphex
514e454f16 Bump up max players to 16 2014-09-04 16:15:49 +02:00
Higor Eurípedes
a7190a8da5 Reorder and add missing X11 and SDL key syms
SDL1 and SDL2 key syms have been merged.
2014-09-02 21:36:37 -03:00
twinaphex
e68f62040d Cleanups, 80-char limit 2014-09-02 16:50:28 +02:00
twinaphex
bf13548459 Remove extraneous elses in input code 2014-08-28 18:09:55 +02:00
twinaphex
823be1ce41 Get rid of more driver_funcs macros 2014-08-15 20:51:59 +02:00
twinaphex
fab7792058 Get rid of set_keybinds - no longer used 2014-08-14 00:49:28 +02:00
twinaphex
7ff8db3f69 input_common.c - prevent unused variable warning 2014-08-12 23:00:59 +02:00
twinaphex
b1d7cd038d Refactor input_push_analog_dpad 2014-08-12 20:59:05 +02:00
Higor Eurípedes
e38c826fe1 (SDL*) Merge joypad drivers 2014-08-11 19:47:30 -03:00
Higor Eurípedes
b6df19dffb (SDL*) Merge input drivers 2014-08-11 19:47:30 -03:00
Higor Eurípedes
609f3a8a36 (SDL2) Added joypad driver 2014-08-10 18:09:56 -03:00
Higor Eurípedes
46beb117ef (SDL2) Add input driver 2014-08-10 15:00:21 -03:00
twinaphex
b76a2c2cee Refactor away input_joypad_poll - trivial wrapper function 2014-08-03 00:44:07 +02:00
twinaphex
b6dc9fff03 Comment out input_common debug log 2014-08-02 19:56:18 +02:00
twinaphex
5f42c1281b Refactor input_try_autoconfigure_joypad - certain pads (like Xarcade
Tankstick) have two player pads on one device and have separate
buttons/keys per pad - so we need to query first for a name with the
'index' appended at the end - and a more generic 'name' afterwards
2014-07-28 04:28:45 +02:00
twinaphex
7730e872f8 Take out autoinput log 2014-07-28 04:08:06 +02:00
twinaphex
a41c97c186 Add log for AUTOINPUT 2014-07-28 02:06:54 +02:00
Toad King
57d1cbbf26 (EMSCRIPTEN) add analog emulator support 2014-07-06 20:02:44 -04:00
Monroe88
adc7cba421 Add missing RetroKeyboard mappings to DirectInput 2014-07-01 21:06:56 -05:00
John Grub
e2f8217d83 fix build
need another #endif here to go along with the new #ifdef
2014-06-14 17:25:09 -07:00
twinaphex
c1501f7ffe (QNX) Start refactoring QNX input driver 2014-06-14 23:07:58 +02:00
Themaister
50ac407a9a Avoid breaking autoconfig when inside a push/pop d-pad emulation block. 2014-06-11 15:48:15 +02:00
twinaphex
31c68a7402 (Android) Input driver - cleanup pt. 1 2014-06-10 21:59:18 +02:00
twinaphex
234edda575 (Apple) Properly implement joypad - now executes init - and
also executes osx_pad_init and osx_pad_quit from joypad driver now
instead of outside code having to call it externally
2014-06-10 03:32:03 +02:00
twinaphex
a7cb3e22a7 (Menu) Replace some more RGUI strings 2014-06-10 02:44:19 +02:00
twinaphex
13c5e4b1ab (GX) Reimplement controls pt. 1 2014-06-09 21:18:22 +02:00