594 Commits

Author SHA1 Message Date
Twinaphex
597f25624a (apple_joypad_ps4.c) - build fixes 2014-09-30 10:55:52 +02:00
twinaphex
e65831a778 (Apple) Start backporting meancoot's DualShock4 code from MFIWrapper 2014-09-30 10:52:46 +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
cdefbcfc61 (retroarch.c/overlay.c) - cleanups 2014-09-28 17:52:15 +02:00
twinaphex
8b309fbeaa Move clear_bit/get_bit/set_bit to input_common.h 2014-09-28 17:07:44 +02:00
Twinaphex
9edb88caba (Apple joypad) Comment out WiiU/DualShock4 checks 2014-09-28 16:07:38 +02:00
twinaphex
a0f24d0bb2 (Apple HID) Get vendor ID/product ID too 2014-09-28 15:32:17 +02:00
Twinaphex
d7fe629afa (Apple) apple_pad_interface - cleanups 2014-09-28 15:21:59 +02:00
Twinaphex
db4818ff9b (Apple) Input - cleanups in apple_joypad_ps3.c 2014-09-28 15:19:03 +02:00
twinaphex
afd090edd9 apple_pad_interface - use void * 2014-09-28 15:06:51 +02:00
Twinaphex
747badfa6c (Apple HID) Show message queue message when disconnecting joypad 2014-09-28 09:05:11 +02:00
twinaphex
f3004d29d1 (Udev) add comment 2014-09-28 08:58:16 +02:00
twinaphex
0a4ef36218 (Apple HID) Cleanups 2014-09-28 08:35:51 +02:00
Twinaphex
b0fb6f483d (Apple/OSX) Split up HID code into separate file 2014-09-28 08:29:45 +02:00
Twinaphex
d8100d299a (iOS) Build fixes 2014-09-28 07:01:39 +02:00
Twinaphex
764e7f930d Go through ID API for generaltools. 2014-09-27 21:36:04 +02: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
715eeb0062 (Android) Fix build 2014-09-25 06:49:55 +02:00
twinaphex
00e605d9ba Take out MODE_MENu - and introduce g_extern.is_menu 2014-09-25 06:33:28 +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
94a269dbca (Android) Build fix 2014-09-18 05:54:39 +02:00
twinaphex
f16a065cdd Fixes 'block hotkey enable' 2014-09-18 04:04:33 +02:00
twinaphex
92938fe45f Optimizations - prevent static bools everywhere in check_* functions
- input_keys_pressed_func takes a pointer and sets it to the last
input state. We then pass this around functions and use it where
necessary
2014-09-17 06:55:03 +02:00
twinaphex
4a84e0e609 Refactor input_keys_pressed_func 2014-09-17 00:46:16 +02:00
twinaphex
310438f15b Refactor away input_key_pressed_func 2014-09-17 00:29:47 +02:00
twinaphex
c391249e3f Optimizations -
* reduce amount of calls to input_key_pressed_func all throughout
rarch_main_iterate - call input_keys_pressed_func only once and
then pass an input state value around to all subsequent functions
* define retro_input_t typedef - simply an uint64_t for now since
meta binds don't exceed 64 entries yet
2014-09-16 09:26:08 +02:00
twinaphex
eeda9df418 input_common.c - small cleanups 2014-09-16 07:06:23 +02:00
twinaphex
191f0b6383 Move input_key_pressed to input_common.h 2014-09-16 07:02:57 +02:00
Lioncash
f8499aa71a Sanitize against NULL in some free-like functions. 2014-09-15 09:30:27 -04:00
twinaphex
8437e4bd2a Style/indent nits 2014-09-15 07:03:54 +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
Lioncash
736561ecbe dinput: Guard against the case where malloc fails 2014-09-11 20:41:46 -04:00
twinaphex
080a79d9c5 (DirectInput) Build fix 2014-09-11 07:37:59 +02:00
twinaphex
75d2e13dcb Make drivers non-const 2014-09-11 07:06:20 +02:00
Twinaphex
511f0ab075 Merge pull request #960 from lioncash/sign
apple_input: Fix a signed-unsigned mismatch warning
2014-09-09 22:08:28 +02:00
Lioncash
070d68186a apple_input: Make MAC_NATIVE_TO_HID array static. 2014-09-09 14:54:29 -04:00
Lioncash
32a191b873 apple_input: Fix a signed-unsigned mismatch warning 2014-09-09 14:49:08 -04:00
twinaphex
689cd6322f Indenting / style nits 2014-09-09 18:15:17 +02:00
twinaphex
3d931d946e Indent/style cleanups 2014-09-09 17:34:28 +02:00
Higor Eurípedes
1833467c2c C++ build fixes 2014-09-06 22:14:09 -03:00
Lioncash
6b84ccdcef Make some functions static 2014-09-06 00:10:52 -04: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