Commit Graph

382 Commits

Author SHA1 Message Date
twinaphex 63c7104ab1 (Android) android_input.c - cleanups 2015-07-09 18:09:45 +02:00
twinaphex d104a878f1 (Android) Code cleanups 2015-07-09 17:55:52 +02:00
twinaphex abf7a80f27 (Android) Buildfixes and remove unused variable warnings 2015-07-09 07:48:56 +02:00
twinaphex 954121b99c Kill off some console-only hacks to do with lifecycle state 2015-07-09 06:35:18 +02:00
Toad King 26b4dc79d0 [Android] clear bindings on context reset, they end up getting rebound anyway
bump version
2015-07-02 23:06:53 -05:00
Toad King d0866995bd set back button to menu toggle if not set through autoconf 2015-07-02 21:48:06 -05:00
David Shah c2d26cfb23 Fix input on KitKat for S7800B and other devices with a VID or PID of 0 2015-07-02 14:28:38 +01:00
twinaphex 96c119bb1d Move retroarch_logger.h to libretro-common/include 2015-06-30 00:38:10 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro 1bbd54f597 Some C89 strict fixes 2015-06-26 17:03:12 +02:00
twinaphex aa6cdf5d5a Put extern "C" around cocoa_keyboard_event 2015-06-26 16:32:30 +02:00
twinaphex a132fa0fba Some C89 build fixes 2015-06-26 15:53:18 +02:00
twinaphex 0fa871a296 Use rarch_system_info_get_ptr 2015-06-25 13:46:32 +02:00
twinaphex 6ee5029bb0 (android_input.c) Use rarch_system_info_get_ptr 2015-06-25 13:20:53 +02:00
twinaphex bdb3cd9b1c (GX) Build fix 2015-06-22 08:01:13 +02:00
Higor Eurípedes e6ea0319c7 (linuxraw) Fix boolean return in void function 2015-06-21 19:50:58 -03:00
Toad King 8929887f25 allow closing text input windows with cancel button 2015-06-18 21:37:54 -05:00
Twinaphex 55eaff9793 (Menu) Cleanups 2015-06-19 03:46:54 +02:00
twinaphex 0e046c2fbb Create input_driver_keyboard_mapping_is_blocked/input_driver_keyboard_mapping_set_block 2015-06-19 03:45:23 +02:00
twinaphex ad5954862b Cleanup some strcmps 2015-06-14 19:42:25 +02:00
twinaphex ca4b8385fe (udev_input.c) Include <unistd.h> 2015-06-13 19:16:42 +02:00
twinaphex daf4f5719b (Input) Cleanups 2015-06-13 00:02:28 +02:00
twinaphex 6acdd3db05 (linuxraw_input.c) Add unistd.h header 2015-06-08 11:57:07 +02:00
twinaphex c7e0163450 (PS3) Buildfix 2015-06-08 00:32:21 +02:00
twinaphex 2b10519fb8 (linuxraw_input.c) Style nits 2015-06-03 21:38:27 +02:00
twinaphex 77ba9c650f (udev) Use {{0}} for initialization 2015-06-03 21:29:08 +02:00
twinaphex 660641f328 Pass handle to input driver to joypad driver's init function 2015-06-03 18:22:54 +02:00
twinaphex bafda714a1 (Input drivers) Cleanups 2015-06-03 18:12:06 +02:00
twinaphex 17ca5a074c (udev_input.c) Cleanups 2015-06-03 17:11:32 +02:00
twinaphex 1532f35376 (udev_input.c) Cleanups 2015-06-03 17:06:22 +02:00
twinaphex 3a7263020a Add grab_stdin function pointer to input driver - avoids threading
segfault at exit with linuxraw input driver to do with driver->stdin_claimed
2015-05-19 19:33:58 +02:00
twinaphex d662ac187d (linuxraw_input.c) Cleanup some function names 2015-05-19 19:26:20 +02:00
twinaphex 7242693e69 (Android) Go back to old input code 2015-05-09 09:38:45 +02:00
twinaphex 4a7fbf728a (Android) Put AInputQueue_hasEvents while loop back 2015-05-02 07:59:06 +02:00
twinaphex ff6babc22a (Android) Start using android_main_poll 2015-05-02 07:06:57 +02:00
twinaphex 5b733c019a (Android) Only copy over state when needed 2015-05-02 04:41:18 +02:00
twinaphex 9a1c90a554 (Android) android_run_events - change signature 2015-05-02 03:52:28 +02:00
twinaphex ec319a2c76 (Android) Start preparing engine_handle_input and engine_handle_cmd for
input sources
2015-05-02 02:13:16 +02:00
twinaphex 78fcd0312f (Android) Change signature of android_main_poll 2015-05-02 01:05:21 +02:00
twinaphex 2f08c143ec (Android) Cleanups 2015-05-02 00:43:24 +02:00
twinaphex fe5d4e34ab (Android) Native app glue - use pthread again 2015-05-02 00:13:28 +02:00
twinaphex 5a2c6aa5d6 (Android) Create android_app_read_cmd 2015-05-01 23:59:23 +02:00
twinaphex 2cc348a75b (Android) Create android_app_userdata 2015-05-01 20:21:52 +02:00
twinaphex 00bf83e575 (Android) Minor cleanups 2015-05-01 18:24:06 +02:00
twinaphex 349a5890e4 (Android) Set lookup name function pointer at the beginning of the app's
start
2015-05-01 18:20:52 +02:00
twinaphex 8ec5db66cf (Android) Move state around 2015-05-01 18:11:34 +02:00
twinaphex 5e5453488f (Android) Move thread state to android_app 2015-05-01 17:25:26 +02:00
Twinaphex 561ae13146 (Android) Cleanups to handle_hotplug 2015-04-29 07:58:19 +02:00
twinaphex 63cc866425 (Android) Don't use AInputQueue_hasEvents - seems to make it more reliable
and less susceptible to ANRs
2015-04-29 06:21:18 +02:00
twinaphex 4b289e361d Revert "(Android) Put input event queue on separate thread"
This reverts commit 828421b46b.
2015-04-29 05:59:40 +02:00
twinaphex 828421b46b (Android) Put input event queue on separate thread 2015-04-29 05:43:05 +02:00
twinaphex 5c5e517b68 (Android) Start copying state copy at poll function call 2015-04-29 04:57:24 +02:00
twinaphex cf1d56dbda (Android) Put input state code on android_input_state_t 2015-04-29 04:48:34 +02:00
twinaphex c3bfa72e6f (Android) Start putting input state on separate struct 2015-04-29 04:17:31 +02:00
twinaphex 1a591baaf3 (Android) Cleanups 2015-04-29 03:08:44 +02:00
twinaphex 5df896dfd1 (Android) Rename "android_input" ident to "android" 2015-04-29 02:49:23 +02:00
twinaphex 4cf9227640 (Android) Move all input to android_input.c 2015-04-29 02:48:17 +02:00
twinaphex 71f43f8bf0 (Android) Cleanups 2015-04-29 01:50:58 +02:00
twinaphex 4b63cb54c9 (Android) Input - cleanups 2015-04-21 02:58:12 +02:00
twinaphex f3b76f6748 (Android) Style nit 2015-04-21 02:46:50 +02:00
twinaphex 6630884254 (Emscripten) Simplify input driver's init function 2015-04-19 22:03:51 +02:00
twinaphex 1f7482d833 (Emscripten) Integrate header files into actual drivers 2015-04-19 22:01:56 +02:00
Twinaphex 134289c496 (Apple) Buildfixes 2015-04-19 17:59:45 +02:00
twinaphex 8702141d90 (Cocoa) Start renaming input_apple to input_cocoa 2015-04-19 17:58:15 +02:00
Lioncash da56cb3071 dinput: Return NULL instead of false for dinput_get_joypad_driver 2015-04-15 03:08:57 -04:00
twinaphex 335097f98f (Emscripten) Buildfixes 2015-04-14 22:01:41 +02:00
twinaphex 8c6cce3945 Rename rarch_joypad_driver_t to input_device_driver_t 2015-04-14 16:37:59 +02:00
aliaspider 20b71c89c6 (3DS) implement input correctly. 2015-04-08 21:35:10 +01:00
twinaphex 78e5206e8f (DInput) Buildfix pt. 2 2015-04-08 02:04:02 +02:00
twinaphex ce6401f327 (DInput) Update 2015-04-08 02:02:10 +02:00
twinaphex 8cc8f855e1 (DInput) Split up dinput joypad into separate file 2015-04-08 01:58:09 +02:00
Twinaphex 7f58dedb46 Merge pull request #1588 from aliaspider/master
(3DS) video driver rewrite.
2015-04-05 21:44:23 +02:00
aliaspider 14ac3fe250 (3DS) use touch for menu toggle.
keep console visible on exit until start is pressed.
2015-04-05 20:39:18 +01:00
twinaphex 592e5d9f4a Change HAVE_WINXINPUT to HAVE_XINPUT 2015-04-05 20:54:46 +02:00
twinaphex 0651a925c1 (apple_input.h) Cleanups 2015-04-04 23:27:42 +02:00
twinaphex 5fdaa293fb Rename winxinput_joypad to xinput_joypad 2015-04-03 02:37:10 +02:00
twinaphex e997f9a477 (QNX) Namespace functions 2015-04-03 01:39:13 +02:00
twinaphex ae922a9593 (qnx_input.c) Cleanups 2015-04-03 00:57:54 +02:00
aliaspider c2d3299d4e (3DS) add the ability to open the menu with L+R+Start+Select. 2015-04-02 02:38:49 +01:00
aliaspider 27bd10b21d implement a very basic input driver, will need to be implemented
correctly later.
2015-04-02 02:19:21 +01:00
twinaphex 5612545b25 (CTR/3DS) Update copyright headers 2015-04-02 01:43:28 +02:00
aliaspider 2045cee432 preliminary 3DS port. 2015-04-01 22:14:13 +01:00
aliaspider 560c98f3cb (menu) add pointer support (active only for rgui for now) 2015-03-28 22:35:18 +01:00
twinaphex 226c6ff41a Simplify input_autodetect 2015-03-27 16:57:58 +01:00
twinaphex 8223969226 (PSP) Buildfix 2015-03-24 10:30:05 +01:00
twinaphex cda414b27d (Android) Go through input_driver_key_pressed 2015-03-24 08:53:49 +01:00
twinaphex 30a0e99972 (Input) Implement function pointers 'set_rumble' and 'grab_mouse'
always to prevent conditional checks
2015-03-24 07:51:50 +01:00
twinaphex 7243c43cda Create video_driver_focus 2015-03-22 23:40:22 +01:00
twinaphex e3eb9fe9f0 Create video_driver_viewport_info 2015-03-22 21:28:50 +01:00
twinaphex 5a443d229a global_get_ptr update pt. 2 2015-03-21 05:42:49 +01:00
twinaphex 5ad9f131ce Updates pt. 5 2015-03-20 22:32:09 +01:00
twinaphex 1e9725a302 (Android) Buildfix 2015-03-18 20:26:55 +01:00
twinaphex 5976da19c4 (Win32) buildfix 2015-03-18 20:23:18 +01:00
Twinaphex 0782cb5168 (Apple) Build fixes 2015-03-18 20:15:40 +01:00
twinaphex 3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
Higor Eurípedes 718ca11a43 Remove warnings during clang++ builds 2015-03-16 14:43:56 -03:00
Higor Eurípedes 7d1b2467da (sdl_input.c) Fix CXX build 2015-03-16 14:01:23 -03:00
twinaphex 80a6673004 Fix some CXX_BUILD errors 2015-03-16 16:57:27 +01:00
twinaphex 84e9f2fa7d Use retro_inline throughout 2015-03-15 04:52:46 +01:00
Andrés 53265b742d Fix windows build 2015-03-12 22:47:58 -05:00
twinaphex 0b5105433f (Windows) Add MOUSE_HWHEEL support 2015-03-12 13:35:37 +01:00
twinaphex e366a6eaa2 (Mouse) Start adding preliminary horizontal mouse wheel up/down 2015-03-12 05:38:37 +01:00
Alcaro a3759d7ff1 Apparently these are booleans used as int. Fixing. 2015-03-11 15:37:48 +01:00
Alcaro a60a22424e Fix indentation - should be spaces, not tabs. 2015-03-11 14:08:51 +01:00
Alcaro 7bd444f1fa Let's not miss these input notifications if many arrive at once. 2015-03-11 14:06:58 +01:00
Twinaphex fcd7cc958a (Apple) Make apple_pointer_state somewhat more robust 2015-03-11 00:43:07 +01:00
Twinaphex fe747a77d0 (OSX) Add stub scroll wheel 2015-03-11 00:35:51 +01:00
twinaphex 667a461c89 (Windows/Mouse) Wheel works now in normal mode - doesn't work in
grabbed mouse state (exclusive foreground mode)
2015-03-10 23:40:54 +01:00
Jean-André Santoni a26a46d4de (Apple) Fix mouse movements 2015-03-10 18:44:55 +01:00
twinaphex 894076f52d (xdk_xinput_input) Cleanup 2015-03-09 19:00:01 +01:00
twinaphex ec01703098 (Input) Cleanups 2015-03-09 18:58:09 +01:00
twinaphex 509e2e2851 (X11 input) Cleanups 2015-03-09 18:55:26 +01:00
twinaphex 74332fbd14 (GLX) Implement mouse wheel up/down for GLX context driver 2015-03-09 17:44:19 +01:00
twinaphex 0ab0fdf709 (Menu) Implement wheel up/down - will need kivutar to implement this
better
2015-03-09 16:36:49 +01:00
twinaphex b93b9d8b58 (udev) Implement wheel up/wheel down 2015-03-09 16:23:22 +01:00
Googer 03b4ace443 (Android) Fix pad input detection for pre-KitKat.
Also update getting system properties to use getprop command instead of
__system_property_get.  Use sdk level to determine which gamepad
detection method to use (only use vendorId and productId if at least
KitKat - i.e., SDK version 19+).
2015-02-24 12:20:21 -05:00
Higor Eurípedes f8e4fa25bb (griffin) Fix udev drivers build 2015-02-20 23:35:39 -03:00
twinaphex 87edea6bd9 (MSVC) Build fixes 2015-02-16 16:51:23 +01:00
twinaphex 31a54223e5 Get rid of useless wrapper function around button presses 2015-02-15 00:42:40 +01:00
twinaphex 64446ef497 Rename and move rarch_viewport 2015-02-14 05:52:05 +01:00
twinaphex 8fca12257a (Apple) Input cleanups 2015-02-11 02:16:33 +01:00
Twinaphex fc21fdbca6 (Apple) Build fixes 2015-01-30 00:02:16 +01:00
twinaphex 0912f05d39 Fix bug 2015-01-29 23:59:46 +01:00
twinaphex ed7da3f632 Get rid of last param to keyboard_input_event 2015-01-29 23:12:42 +01:00
twinaphex f258950bcf Keyboard input overlays can now be used as input device
for keyboard line events
2015-01-29 07:03:20 +01:00
twinaphex 46402deb04 Use PATH_MAX_LENGTH instead of PATH_MAX.
Refactor OSX settings menu code somewhat
2015-01-17 05:47:52 +01:00
twinaphex 0b2d518531 Rename video_context.c to video_context_driver.c 2015-01-12 21:53:04 +01:00
twinaphex ca67f9c317 Rename frontend/platform/ to frontend/drivers/ 2015-01-12 21:47:01 +01:00
twinaphex bd0f0c3f63 Rename gfx_context.c to video_context.c 2015-01-12 18:47:39 +01:00
twinaphex b9ab7a545d Move psp and gx drivers to gfx/drivers 2015-01-12 06:55:31 +01:00
twinaphex 98f35db95c (PSP) Build fixes and rename sdk_defines.h 2015-01-12 06:51:57 +01:00
Twinaphex 8146514064 (Apple) Build fixes 2015-01-12 06:20:19 +01:00
twinaphex dd7d37d49b Add input/drivers/apple_keycode.h 2015-01-12 06:18:22 +01:00
twinaphex 76ad6cc344 Move input drivers to input/drivers 2015-01-12 06:16:52 +01:00
twinaphex 3bc125b6da move most xkbcommon code to keyboard_event_xkb.c 2015-11-17 07:28:45 +01:00
twinaphex 03b1f36af1 Move linux_common to input/common/ 2015-11-17 06:46:32 +01:00
twinaphex 30d0e58bb9 (Apple) Move keymap to input_keymaps.c 2015-11-17 06:25:37 +01:00
twinaphex c3de4ae7c3 cocoa_input.h - remove NUM_HATS too 2015-11-16 06:57:07 +01:00
twinaphex 139a148112 (Apple) hats no longer used 2015-11-16 06:56:29 +01:00
twinaphex 08bb85e509 (OSX) apple->buttons refactored away 2015-11-16 06:46:29 +01:00
twinaphex 2fa91ba26c (IOHIDManager) Make axes code independent from CocoaTouch 2015-11-16 06:32:25 +01:00
twinaphex 3e81b4deef Get rid of a bunch of HAVE_MFI ifdefs 2015-11-16 06:23:07 +01:00
twinaphex 40b22b4d17 Move mfi_buttons state to drivers_joypad/mfi_joypad.m 2015-11-16 04:38:06 +01:00
twinaphex f906814abe mfi_buttons should be only used now from within input/drivers_joypad/mfi_joypad.m 2015-11-16 04:32:04 +01:00
twinaphex 5bdc91c814 Rename mfi_joypad to sec_joypad 2015-11-16 03:57:52 +01:00
twinaphex 1360942283 Buildfixes 2015-11-16 02:42:10 +01:00
Twinaphex 57e8cfe1f9 Totally reimplemented MFi support 2015-11-16 02:39:38 +01:00
Twinaphex f2f1db12cf Turn into C for now 2015-11-16 01:14:43 +01:00
twinaphex 79886a2768 Convert cocoa_input.c to Obj-C 2015-11-16 01:05:49 +01:00
twinaphex 57771fcf3e Rearrange some code 2015-11-14 22:13:47 +01:00
twinaphex 8005585853 move more code to linux_common.c 2015-11-14 22:07:11 +01:00
twinaphex bfec58154e Move code to linux_common.c 2015-11-14 22:03:37 +01:00
twinaphex 499c989df0 dinput.c - buildfixes 2015-11-14 21:58:19 +01:00
Arche-san 3b558775dc Merge branch 'master' into osx-xbox360-gamepad-right-stick-support
Conflicts:
	input/drivers/cocoa_input.h
2015-11-14 18:08:53 +01:00
Arche-san c47254e64b os x : add right stick support for xbox 360 gamepad (and others hid gamepad with 6 axes instead of 4) 2015-11-14 18:04:07 +01:00
twinaphex 465a608a56 More cleanups 2015-11-14 09:04:01 +01:00
twinaphex 49dad39bf4 (udev) Reuse linux_common code 2015-11-14 09:01:41 +01:00
twinaphex d59215a678 Add linux_common.c 2015-11-14 08:50:10 +01:00
twinaphex 81b741e359 Move SDL keymap to input_keymaps.c 2015-11-14 08:28:59 +01:00
twinaphex 33292634ec Move dinput keymap to input_keymaps.c 2015-11-14 08:21:42 +01:00
twinaphex 06c65e2829 (X11) Move keybind map to input_keymaps.c 2015-11-14 08:14:18 +01:00
Twinaphex 6847501e99 Revert "iCade codepaths work now for regular OSX too"
This reverts commit d72090f5e9.
2015-11-14 02:08:59 +01:00
Twinaphex d72090f5e9 iCade codepaths work now for regular OSX too 2015-11-14 01:48:16 +01:00
Twinaphex 1b05556b06 remove some unused variables 2015-11-13 21:44:08 +01:00
twinaphex e0b5925c24 Remove now unused icade code 2015-11-13 21:42:58 +01:00
Twinaphex 8ebad97fbd Revert "Add iCade code to cocoa_input_is_pressed"
This reverts commit 536754d6f2.
2015-11-13 02:46:01 +01:00
twinaphex 536754d6f2 Add iCade code to cocoa_input_is_pressed 2015-11-13 02:42:46 +01:00
Twinaphex 924642a744 Revert "Revert "Refactor small keyboard/icade code a bit""
This reverts commit fde9676ac3.
2015-11-13 01:50:34 +01:00
Twinaphex fde9676ac3 Revert "Refactor small keyboard/icade code a bit"
This reverts commit 340c15c517.
2015-11-13 01:39:19 +01:00
twinaphex 340c15c517 Refactor small keyboard/icade code a bit 2015-11-12 17:54:52 +01:00
twinaphex 08a343fbd0 More iOS ifdefs 2015-11-12 06:15:28 +01:00
twinaphex 53c0e57d6d (Android) Buildfix 2015-11-07 21:13:11 +01:00
twinaphex 1c07ae1e5a (DInput) Buildfix 2015-11-07 21:12:39 +01:00
twinaphex 22f85b11df Don't need this anymore 2015-11-07 20:59:12 +01:00
twinaphex 6ac88eed54 Cleanups 2015-10-23 08:34:15 +02:00
twinaphex 90cb9c5157 (udev_input.c) Cleanup 2015-10-23 08:22:59 +02:00
twinaphex 5b55b35210 (Dinput) Another buildfix 2015-10-23 07:55:56 +02:00
twinaphex e99fda4d1f (DirectInput) Buildfix 2015-10-23 07:51:45 +02:00
twinaphex 1a20e19c51 We will now be able to know from which input device type the input
event comes from - i.e. keyboard or gamepad
2015-10-22 19:17:47 +02:00
twinaphex d2a5172ddf (x11_input.c) Remove forward declaration 2015-10-10 10:38:22 +02:00
twinaphex 8fc33b386b (udev) Start adding RETRO_DEVICE_POINTER / RETRO_DEVICE_POINTER_SCREEN -
untested
2015-10-10 10:35:45 +02:00
Twinaphex 39189047b4 Use RARCH_DEVICE_MOUSE_SCREEN by default now for Zarch, start
setting up cocoa_input.c
2015-10-08 21:04:27 +02:00
twinaphex 704968adca (Dinput) Add RARCH_DEVICE_MOUSE_SCREEN 2015-10-08 10:16:28 +02:00
twinaphex 666c6849b7 (X11) Add preliminary stab at RARCH_DEVICE_MOUSE_SCREEN 2015-10-08 09:52:31 +02:00
twinaphex 20b8d592e1 Create RARCH_DEVICE_MOUSE_SCREEN 2015-10-08 08:19:38 +02:00
twinaphex 303fd1daed (DirectInput) Take out excessive logging 2015-10-05 11:08:41 +02:00
twinaphex 7755277b87 (DirectInput) Following system mouse cursor in windowed mode 2015-10-05 11:06:42 +02:00
twinaphex 87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex 94c3546e71 More static code analysis cleanups 2015-09-28 22:03:16 +02:00
twinaphex 0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex 4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex aed0cb8d21 Update rarch_main_set_pause references 2015-09-26 13:22:36 +02:00
twinaphex e3e1a5a35c Refactor away rarch_main_set_idle 2015-09-26 13:20:15 +02:00
twinaphex 0d18c61bc5 Add RARCH_MAIN_CTL_IS_PAUSED 2015-09-26 13:04:07 +02:00
twinaphex 919220751c (PSP) Move files around 2015-09-20 15:33:54 +02:00
twinaphex c11b08ed91 (Android) Buildfix 2015-09-16 05:46:03 +02: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
aliaspider 3b85e0dd5a (3DS) fix build to work with the latest ctrulib. 2015-09-07 18:31:30 +01:00
twinaphex 73d599dc83 Should compile now with MISSING_DECLS = 1 2015-09-06 15:13:12 +02:00