Commit Graph

2512 Commits

Author SHA1 Message Date
twinaphex 87e5c5a1bd input_menu_keys_pressed - remove some more boilerplate code 2016-12-23 02:28:13 +01:00
twinaphex af5aaa9db8 Cleanup boilerplate code in input_menu_keys_pressed 2016-12-23 02:22:47 +01:00
twinaphex 32e1f96fa1 (PS3) Fix gamepad 2016-12-21 22:27:37 +01:00
twinaphex 8dcf05036c (input_config.c) Get rid of implicit memset 2016-12-19 18:55:02 +01:00
Gregor Richards 262d77546b Adding game/watch key
Adding a key to toggle between playing and spectating. This key takes
the place of the previous flip key, although player flipping does
continue to work (and must be rebound if you still want it)
2016-12-18 19:28:42 -05:00
radius ab56b5f33c differentiate xbox one controllers 2016-12-18 13:44:15 -05:00
Hans-Kristian Arntzen 313ac63c33 Make use of xkb_state_update_mask.
Fixes mod keys in Wayland it seems.
2016-12-17 20:42:48 +01:00
Hans-Kristian Arntzen b2059dcb79 Implement basic Wayland keyboard and mouse. 2016-12-17 20:28:08 +01:00
twinaphex feae0823ce Prevent some implicit memsets 2016-12-17 14:40:06 +01:00
twinaphex aafae944cb Don't memset autoconfig_params_t 2016-12-17 14:26:13 +01:00
twinaphex 2153f3f011 Check if autodetect is enabled at beginning of connect task 2016-12-16 15:18:04 +01:00
twinaphex 209305f944 Connect task now sets PID/VID too 2016-12-16 14:02:11 +01:00
twinaphex 1b0389713d (GX) Buildfix 2016-12-16 13:42:41 +01:00
Twinaphex db1f3c058a (iohidmanager_hid.c) No longer need to include configuration.h now 2016-12-16 12:36:01 +01:00
twinaphex d9def056e7 The 'connect' task now sets the device name upon completion 2016-12-16 12:33:56 +01:00
twinaphex 62f5b2d3c3 The disconnect task now clears the device name 2016-12-16 12:20:31 +01:00
Twinaphex 5c522c643c Merge pull request #4254 from danzel/fix-joypad-connection
Fix joypad_connection handling of unknown controllers
2016-12-16 12:15:40 +01:00
Dave Leaver cd5a5c5fd7 iohidmanager_hid: Remove name from adapters when they are disconnected 2016-12-16 20:17:24 +13:00
Dave Leaver f7c6574b37 Correctly handle adding controllers if we fail to match them to the known pad_map. 2016-12-16 20:16:55 +13:00
twinaphex 45e841c5c5 Don't include config_file.h inside input_config.h 2016-12-15 11:17:48 +01:00
Twinaphex 4964791cde Revert "changed input binding order" 2016-12-11 19:00:03 +01:00
Patrick Scheurenbrand d40a0e2f3a changed input binding order 2016-12-11 13:03:02 +01:00
twinaphex 15c63c3de9 (input_driver.c) Cleanups 2016-12-11 09:13:24 +01:00
twinaphex d2bd6677bd (udev_joypad.c) Cleanup 2016-12-11 08:48:25 +01:00
twinaphex e9f853ba93 Move (joykey == NO_BTN ) to input_joypad_driver 2016-12-11 08:44:55 +01:00
twinaphex 37559c6f5f Cleanups 2016-12-11 08:31:55 +01:00
twinaphex 423578d972 (Joypad drivers) Simplify hat code 2016-12-11 07:28:33 +01:00
twinaphex b087a7441a Fix game focus toggle 2016-12-11 03:52:08 +01:00
twinaphex e32d93d886 Remove functions 2016-12-07 08:14:04 +01:00
twinaphex 04a3c3f15e Remove unused function input_driver_unset_flushing_input 2016-12-07 08:11:59 +01:00
twinaphex dc7549434f Add headers 2016-12-07 08:10:02 +01:00
twinaphex a12d0d082d Move input_translate_coord_viewport to video_driver.c 2016-12-07 08:07:11 +01:00
twinaphex 7327e98c8a Add HAVE_XINPUT ifdef 2016-12-07 07:08:27 +01:00
twinaphex d04309fc05 Buildfix 2016-12-07 06:16:12 +01:00
twinaphex 31a7f64f2c Cleanups 2016-12-07 05:41:08 +01:00
twinaphex f6dcfd21cf (MSVC) MSVC build fixes 2016-12-07 05:39:27 +01:00
twinaphex e3620278a8 Add HAVE_MENU ifdefs for menu code 2016-12-07 03:16:34 +01:00
twinaphex 4b1c24adf9 - Move input flushing hack to input_keys_pressed functions
- Move menu binding state hack to menu_input_keys_pressed
2016-12-06 20:50:29 +01:00
twinaphex 77df0ef3ae Rebase input_key_pressed/input_menu_keys_pressed 2016-12-06 18:12:35 +01:00
Adriano Moura 6b99eeaf88 Implements a hotkey for toggling mouse grabbing, hiding and hotkey blocking. Usefull for playing tyrquake with kb/m. 2016-12-06 03:32:28 -02:00
Adriano Moura 21eb2fd71f Just an attempt at trying to fix x11 keyboard events. Allows you to play tyrquake with a kb on linux. 2016-12-06 03:32:10 -02:00
Adriano Moura 4434bd221a Fixes an issue where mouse is only sampled half the time.
Very obvious when aiming with a mouse like in tyrquake.
2016-12-06 03:31:21 -02:00
twinaphex b7ea2306af Remove unused input_driver_unset_hotkey_block 2016-12-05 05:40:51 +01:00
twinaphex ecbfc7fd8a (input_driver.c) Cleanups 2016-12-05 05:34:38 +01:00
twinaphex 2ba311274e Simplify input_translate_coord_viewport 2016-12-05 05:18:36 +01:00
twinaphex 6e28aa30bb Simplifications 2016-12-04 22:23:27 +01:00
twinaphex a762dbcdfb Simplify input_poll 2016-12-04 22:22:00 +01:00
twinaphex bbbcc97f57 Simplify input_push_analog_dpad 2016-12-04 22:20:47 +01:00
twinaphex 6cdb823bb4 Turn input_push_analog_dpad into macro 2016-12-04 21:37:47 +01:00
twinaphex 85aa88f665 Simplify input_push_analog_dpad 2016-12-04 21:30:50 +01:00
twinaphex 185925cf3a Update input_pop_analog_pads 2016-12-04 21:08:49 +01:00
twinaphex c19a6dd018 Turn input_pop_analog_dpad into macro 2016-12-04 20:23:52 +01:00
twinaphex 59c317dc1d Pass pointers to input_push_analog_dpad 2016-12-04 20:20:35 +01:00
twinaphex 0fdb8881cb Pass pointer variables to input_pop_analog_dpad 2016-12-04 20:17:55 +01:00
twinaphex 1c21c001c6 Cleanups 2016-12-04 19:52:52 +01:00
Brad Parker e39031cbd0 revert rest of unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
twinaphex d36e7700f7 (input_driver.c) Style nits 2016-12-03 06:14:57 +01:00
Brad Parker d20acaa63d more unicode fixes 2016-12-02 23:00:27 -05:00
Brad Parker cc7bf6b4fa more unicode fixes 2016-12-02 21:11:55 -05:00
Brad Parker d891f1c90b remove explicit unicode def/undefs 2016-12-02 14:34:29 -05:00
Brad Parker 3846ce1837 build fixes for MSVC, start moving back to TCHAR usage so we can switch unicode on and off 2016-12-02 12:54:39 -05:00
twinaphex d3151927bf (Emscripten) Buildfix 2016-12-02 17:41:44 +01:00
twinaphex 021559a877 Get rid of runloop.h dependencies inside input/ dir 2016-12-02 06:07:45 +01:00
twinaphex dd5736b273 Turn check_input_driver_block_hotkey into macro 2016-12-02 05:26:37 +01:00
twinaphex 70557fdee6 (Wii) Buildfix 2016-12-02 00:24:54 +01:00
twinaphex 779b680264 (Android) Buildfix 2016-12-01 23:05:36 +01:00
Twinaphex 0d79bc754c (OSX) Buildfix 2016-12-01 22:51:46 +01:00
twinaphex 5fdb5b4dcf Updates 2016-12-01 22:24:17 +01:00
Brad Parker 23dd41a3cc missing ../ 2016-12-01 15:40:31 -05:00
twinaphex d3c22cb0e4 Move input/input_autodetect.c to tasks/task_autodetect.c 2016-12-01 20:38:20 +01:00
twinaphex 0bd94b9b54 Move extern variable prototype to input_autodetect.c 2016-12-01 20:26:35 +01:00
twinaphex 76d0380e45 Rename input_autoconfigure_joypad to input_autoconfigure_connect 2016-12-01 18:57:44 +01:00
twinaphex e689d55414 Rename autoconfig functions 2016-12-01 18:52:34 +01:00
twinaphex a692b5953f Put parentheses around conditionals 2016-12-01 18:38:11 +01:00
twinaphex a485f1559d Move static bool variable 2016-12-01 18:36:50 +01:00
twinaphex 71ea15fed2 Use string_is_empty 2016-12-01 18:35:30 +01:00
Brad Parker ba54f20626 initial libcaca video driver 2016-12-01 12:13:45 -05:00
twinaphex debf5e0222 Rename g_udev and g_udev_mon 2016-12-01 17:39:36 +01:00
twinaphex c1e343cec8 Cleanup hid_joypad_name 2016-12-01 17:37:27 +01:00
twinaphex a9e627ca57 (udev_input.c) Rename static function 2016-12-01 17:33:41 +01:00
twinaphex 31a95b8972 (android_input.c) Get rid of HAVE_MENU ifdefs 2016-12-01 17:31:26 +01:00
twinaphex 200be98052 (udev_input.c) use udev_common.c 2016-12-01 16:51:43 +01:00
twinaphex ebe1ac6967 (udev_joypad.c) Cleanups 2016-12-01 16:46:32 +01:00
twinaphex 793519eb61 (linuxraw_joypad.c) Cleanups 2016-12-01 16:44:47 +01:00
twinaphex b63b675274 (linuxraw_joypad.c) Cleanups 2016-12-01 16:42:21 +01:00
twinaphex d7f7d5f99a Rewrite epoll_common 2016-12-01 16:40:04 +01:00
twinaphex 9afa24ea70 Reuse udev_common.c function 2016-12-01 15:05:17 +01:00
twinaphex 63ae172a23 Add udev_common.c/.h 2016-12-01 15:02:42 +01:00
twinaphex a726fc2d8e Further cleanups 2016-12-01 04:12:56 +01:00
twinaphex 468644e213 Simplify udev_hotplug_available and prevent implicit memset 2016-12-01 03:59:02 +01:00
twinaphex eee077fe31 (udev) Simplify udev_joypad_handle_hotplug 2016-12-01 03:50:35 +01:00
twinaphex bd53c33069 Move input_get_auto_bind to input_config.c 2016-12-01 03:43:51 +01:00
twinaphex c351aed001 (input_driver.c) Cleanups 2016-12-01 03:38:25 +01:00
twinaphex 5337e494c6 More small cleanups 2016-12-01 03:01:32 +01:00
twinaphex e6eeb8e559 Simplify check_input_driver_block_hotkey 2016-12-01 03:01:32 +01:00
Brad Parker 3ac51389bb dinput: catch null pointer 2016-11-30 02:07:29 -05:00
twinaphex ce2fbbdbe2 (hid_joypad.c) Prevent null pointer dereferences 2016-11-30 05:12:28 +01:00
Twinaphex 7197be5a0d (OSX) Prevent crash 2016-11-30 05:07:08 +01:00
Twinaphex 17dc79a002 Buildfixes/silence unused variable warnings 2016-11-30 04:32:59 +01:00
Brad Parker 367dea6723 unicode-ify a couple other windows files, start changing function names to W version explicitly 2016-11-29 20:32:24 -05:00
twinaphex 42a3ec2cf7 Do conditional check before calling function 2016-11-27 15:43:00 +01:00
twinaphex 44131ff639 (input_overlay.c) Prevent crashes 2016-11-27 15:34:19 +01:00
twinaphex 4e8bb52038 (input_overlay.c) Remove more hacks 2016-11-27 15:21:53 +01:00
twinaphex 267fdbe21e (input_overlay.c) remove more hacks 2016-11-27 15:17:44 +01:00
twinaphex 7f339a8f84 More hacks from input_overlay.c removed 2016-11-27 15:12:48 +01:00
twinaphex bbb2ffea9c Remove nasty input overlay hack for input_overlay_set_scale_factor 2016-11-27 15:10:09 +01:00
twinaphex e9846aae68 (Android) Remove unused variables 2016-11-27 15:02:14 +01:00
twinaphex 1ab6cc5b47 Remove dead OSK code 2016-11-27 02:52:13 +01:00
twinaphex 80798ab924 Remove hacky 'OSK Keyboard' overlay 2016-11-27 02:46:09 +01:00
twinaphex 21e9bde569 Silence warning 2016-11-21 15:00:57 +01:00
twinaphex 95254aa79b Remove 'back as menu toggle' setting 2016-11-21 13:05:23 +01:00
radius 281aa1df72 this is redundant now, remap files should only be used for.. remaps 2016-11-20 12:50:54 -05:00
twinaphex 1df7b924bf Merge branch 'master' of https://github.com/libretro/RetroArch 2016-11-20 13:37:16 +01:00
twinaphex 0a42940332 (Menu keyboard) Implement pageup/pagedown 2016-11-20 13:36:57 +01:00
radius 53ab0cdb55 add menu setting and fix for keyboard 2016-11-19 13:48:24 -05:00
radius f343bc45fb remove these settings that we never properly implemented 2016-11-19 12:57:12 -05:00
aliaspider e268630b84 (WiiU) skip bad vpad reads. 2016-11-10 13:03:40 +01:00
aliaspider 2abc9c7ef9 (WIIU) Home button can now trigger the main menu too. 2016-11-08 09:31:46 +01:00
twinaphex d4b4cd92bb Translate string 2016-11-08 01:17:10 +01:00
Brad Parker c9727f735b update JP translation, add 2 new translatable strings 2016-11-07 17:28:26 -05:00
FIX94 4a285fd4e1 (WiiU) fixed random pixels being displayed on game start/close and exit
(WiiU) fixed touchscreen sending invalid data which broke the menu toggle
2016-11-07 02:42:12 +01:00
twinaphex cfa01f623d input_remapping_state - remove function and inline inside input_driver.c
input_state function
2016-11-06 15:42:26 +01:00
Alcaro dd9a810451 This warning doesn't need to be here 2016-11-06 12:02:37 +01:00
Twinaphex 92b3a24943 Merge pull request #3940 from aliaspider/master
(WIIU) GX2
2016-11-05 15:07:31 +01:00
aliaspider 0433cae3c9 (WIIU) misc. 2016-11-05 15:01:43 +01:00
twinaphex dad26e0956 Header cleanup 2016-11-05 14:10:30 +01:00
twinaphex c35d723b40 Fix C89_BUILD 2016-11-04 14:29:02 +01:00
twinaphex 5db3f4528d (input_keyboard.c) Cleanups 2016-11-03 23:10:42 +01:00
aliaspider 176dd79f33 (WIIU) misc. 2016-11-02 22:06:15 +01:00
Brad Parker f5cac72735 fix backspacing of unicode chars in OSK 2016-11-02 16:16:04 +01:00
twinaphex 04e3059f7f Remove unused variable 2016-11-02 14:17:22 +01:00
twinaphex 2091c4cc2f (Menu) Left analog stick controls the menu now 2016-11-02 13:44:34 +01:00
twinaphex 4945075201 Prevent warning 2016-10-31 08:00:57 +01:00
Brad Parker 18cce4cfc9 fix OSK hang in Windows because we are getting a down event for keycode 0... 2016-10-30 01:14:50 -04:00
twinaphex 696abbed83 C89_BUILD fix 2016-10-30 03:30:32 +01:00
twinaphex 950e67b8a2 Use BIT64_SET 2016-10-30 02:58:26 +01:00
Brad Parker 1a73b1d144 OSK cleanup, add katakana support 2016-10-29 19:51:02 -04:00
Jean-André Santoni 01985c7460 OSK memory fix and hiragana support 2016-10-29 23:54:06 +02:00
Jean-André Santoni 97e13c4409 Preliminary changes for the utf8 OSK 2016-10-29 22:43:34 +02:00
twinaphex 21c7f562f7 Optimize input code 2016-10-29 15:53:14 +02:00
twinaphex 3d91e4087f input_keys_pressed - get rid of early return 2016-10-29 15:37:28 +02:00
twinaphex 9926686c83 Get rid of hardcoded MAX_USERS 2016-10-29 08:44:01 +02:00
Brad Parker 3354c07810 fix joypad A button in OSK 2016-10-28 23:47:17 -04:00
twinaphex 763a925a17 Fix Android build 2016-10-29 04:59:56 +02:00
twinaphex ce98a4dd19 Get rid of now unused input_driver_key_pressed 2016-10-29 04:57:28 +02:00
twinaphex 0d5d3b27be No longer use key_pressed 2016-10-29 04:48:51 +02:00
twinaphex f1b2caa138 Rewrite input_keys_pressed 2016-10-29 04:41:45 +02:00
twinaphex 9eecd774d1 input_menu_keys_pressed - second joypad driver should be
working now too
2016-10-29 04:33:57 +02:00
twinaphex 93af926f76 Cleanups 2016-10-29 04:09:50 +02:00
Twinaphex d231642856 Merge pull request #3888 from libretro/menu_input
Menu input
2016-10-29 04:05:30 +02:00
Twinaphex 92a9f8aec7 Merge pull request #3887 from aliaspider/master
(WIIU) cleanup. adapt dynamic symbol loading to be able to use headers
2016-10-29 04:02:54 +02:00
twinaphex 5d90b774da Fixes remaining input issues courtesy of bparker 2016-10-29 04:00:36 +02:00
aliaspider e055b7cbc1 (WIIU) cleanup. adapt dynamic symbol loading to be able to use headers
from WUT.
2016-10-29 02:56:40 +01:00
radius 6a950526d5 add group for other android atv devices 2016-10-28 20:49:44 -05:00
radius a900bc41a8 fix l3/r3 2016-10-28 20:05:38 -05:00
radius cb2e78e46d add android standard gamepad builtin autoconf 2016-10-28 18:15:24 -05:00
Twinaphex 535215eefa Merge pull request #3879 from libretro/master
Merge
2016-10-28 07:44:10 +02:00
Twinaphex 453155ade3 Merge pull request #3877 from aliaspider/master
(WIIU) update.
2016-10-28 01:53:43 +02:00
Twinaphex 7e5ee4f86c Prevent uninitialied variable 2016-10-27 21:47:15 +02:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
aliaspider 185849d5ff (WIIU) add frontend driver, allocate mem2 2016-10-27 15:33:40 +01:00
twinaphex 1b6e7da2ce Merge branch 'menu_input' 2016-10-27 10:54:49 +02:00
twinaphex 6310f53587 Prevent some implicit memsets and reduce the size of some
char variables
2016-10-27 10:45:53 +02:00
twinaphex c1b59df7ae Reduce size of char variables 2016-10-27 09:32:07 +02:00
twinaphex 60d313bf6a Reduce size of more char variables 2016-10-27 09:21:03 +02:00
twinaphex b1b2579fde Start reducing size of some char variables 2016-10-27 09:17:41 +02:00
twinaphex 8d6be4b700 Reduce size of some messages (was PATH_MAX_LENGTH by default,
which can default to 4096)
2016-10-27 09:13:36 +02:00
twinaphex 53ad28ffde Backport this patch 2016-10-27 07:03:37 +02:00
twinaphex d246d320c7 Get rid of messy 'all_users_control_menu' hack - will be dealt
with better once menu_input branch has been merged
2016-10-27 07:00:13 +02:00
twinaphex 65685c3a9d Update input_menu_keys_pressed 2016-10-27 06:55:08 +02:00
twinaphex 2a0dba3009 Move all_users_control_menu code to input/input_driver.c 2016-10-27 06:53:06 +02:00
twinaphex 660f021dbc Simplify input_menu_keys_pressed 2016-10-27 06:49:18 +02:00
twinaphex 5ac9905540 Simplify code 2016-10-27 06:47:31 +02:00
twinaphex f778bee856 Add input_menu_keys_pressed to master 2016-10-27 06:38:02 +02:00
twinaphex 8f30b3e706 Update menu_keys_pressed 2016-10-27 06:34:53 +02:00
Twinaphex 2cd82ff2c2 Merge pull request #3870 from libretro/master
Merge
2016-10-27 04:49:46 +02:00
twinaphex b9909bf5ba Add CONFIG_BIND_ALT 2016-10-27 04:03:24 +02:00
aliaspider a4d745a471 preliminary port to the wiiu platform 2016-10-27 01:34:10 +01:00
Twinaphex d1c04ad711 Merge pull request #3868 from libretro/master
Prevent more potential crashes
2016-10-27 01:24:15 +02:00
twinaphex 5fc6519328 Prevent more potential crashes 2016-10-27 01:21:01 +02:00
twinaphex a9a2749af9 Add input_menu_keys_pressed 2016-10-27 00:13:29 +02:00
Twinaphex 26547be5ed Try to prevent another crash 2016-10-26 23:05:14 +02:00
Twinaphex 90fbc09f82 Fix remaining crash on OSX 2016-10-26 10:34:24 +02:00
twinaphex 8ce882c829 Should hopefully fix most of the remaining issues 2016-10-26 10:29:26 +02:00
twinaphex d6901685f7 Prevent crash with udev driver 2016-10-26 10:21:56 +02:00
twinaphex 858f96d082 Try to prevent crashes when amount of selected users is less
than what a core can support
2016-10-26 10:19:22 +02:00
twinaphex 948b206b60 Get rid of using hardcoded labels 2016-10-25 19:50:03 +02:00
Brad Parker c70ac3986c make input hotkey/user bind strings translatable 2016-10-24 18:22:53 -04:00
twinaphex 2663d8e694 (input_keyboard.c) Simplify code 2016-10-24 07:09:50 +02:00
twinaphex f17080091b Simplify input_keyboard_event 2016-10-24 07:06:59 +02:00
twinaphex 5ea2078638 Attempt buildfix 2016-10-24 06:40:09 +02:00
twinaphex 7a18b053c4 C89_BUILD fixes 2016-10-24 05:57:13 +02:00
twinaphex 3702fde113 Simplify some input/video functions 2016-10-24 03:05:55 +02:00
twinaphex 294f54ebf0 Cleanup udev_pointer_state 2016-10-24 02:47:29 +02:00
twinaphex d5d49e602c Cleanup input_joypad_analog 2016-10-23 21:59:53 +02:00
twinaphex b0ed69f05c Optimize android_keyboard_port_input_pressed 2016-10-23 20:43:14 +02:00
twinaphex 57457c2d70 Optimize apple_input_is_pressed 2016-10-23 20:42:09 +02:00
twinaphex 647ffca76c Optimize input_joypad_pressed code 2016-10-23 20:37:12 +02:00
twinaphex 2f12d8982c input_joypad_pressed - small opts 2016-10-23 20:08:27 +02:00