Commit Graph

338 Commits

Author SHA1 Message Date
David Walters c733f96a16 listen for mouse buttons/wheel when binding input 2017-11-26 15:42:47 +00:00
David Walters 1d70fef70c load/save mbutton assignments to retroarch config 2017-11-26 11:54:10 +00:00
David Walters b190ac1943 Add 'mbutton' field to retro_keybind struct 2017-11-26 11:49:37 +00:00
David Walters 5be7921445 reimplement using retro_bits_t; pass by ref; raise bind limit to 256 2017-11-24 11:19:17 +00:00
David Walters 5294d43bf1 use C89 compatible comment style 2017-11-24 09:28:26 +00:00
David Walters b0e383d5f0 Extend input bind limit to 128 2017-11-23 23:04:09 +00:00
David Walters 795057bacf Support for RETRO_DEVICE_INDEX_ANALOG_BUTTON 2017-11-17 22:46:23 +00:00
twinaphex fcf6228dce Turn into char pointer array 2017-09-27 20:11:44 +02:00
twinaphex b79f95668b Turn it into char pointer array 2017-09-27 20:08:37 +02:00
radius fe8a0657b4 add input_mapper scafolding 2017-09-11 00:20:20 -05:00
twinaphex d1a41a742f Reduce joykey_label/joyaxis_label char arrays 2017-09-08 06:01:21 +02:00
twinaphex 44a1a429c8 Change type of pid/vid to uint16_t 2017-08-31 12:14:27 +02:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
twinaphex d8f27886ad Reduce size of input driver ids to uint16_t - should be enough 2017-08-30 14:02:18 +02:00
twinaphex 5e0e970c92 Cleanups 2017-06-11 19:48:40 +02:00
twinaphex 0751cb238d Add HAVE_HID ifdefs 2017-06-11 18:12:38 +02:00
twinaphex 060753258a Combine input_driver.c and input_keyboard.c 2017-06-11 17:51:12 +02:00
twinaphex 612cb54cfe Merge input_hid_driver 2017-06-11 08:56:36 +02:00
twinaphex 5d78c2209f Remove obsolete header 2017-06-06 08:30:01 +02:00
twinaphex efdfb29d50 Turn input_joypad_is_pressed into static inline function 2017-06-06 08:12:53 +02:00
twinaphex f307135d1d Split up wayland input driver into separate driver; and
improve mouse support for menu
2017-06-06 07:34:33 +02:00
twinaphex 6b3dbff75f Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
twinaphex d7de9facc3 Simplify input_keys_pressed 2017-05-21 22:31:15 +02:00
twinaphex 77d83b4782 Cleanups 2017-05-21 21:55:20 +02:00
twinaphex f8f25602e8 Get rid of old_input variable 2017-05-21 21:24:01 +02:00
twinaphex a35e452ec3 Use trigger_input only for menu 2017-05-21 21:19:07 +02:00
twinaphex 68ecade37d Revert "Call button combo toggle for quick menu toggle from runloop_check_state"
This reverts commit 4d4b00f877.
2017-05-21 20:57:36 +02:00
twinaphex 4d4b00f877 Call button combo toggle for quick menu toggle from runloop_check_state 2017-05-21 20:53:33 +02:00
Zoran Vuckovic 1bc945e3dc Add Windows raw input driver 2017-05-18 18:48:41 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
twinaphex ef8094836f Create input_driver_get_float 2017-05-10 07:07:06 +02:00
twinaphex d9c5013d42 Pass settings struct around 2017-05-06 06:46:48 +02:00
twinaphex bdaf00032e Add comments 2017-01-26 02:49:42 +01:00
twinaphex be617c530b Expand input_keys_pressed 2017-01-25 04:31:55 +01:00
Brad Parker 57949227df DOS: initial input/joypad driver 2017-01-24 00:55:58 -05:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex 8bd12368ef Pass joypad_driver name to input_driver_init function and make
sure we don't need to access the settings struct from the
input driver
2017-01-10 17:59:48 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
Hans-Kristian Arntzen b2059dcb79 Implement basic Wayland keyboard and mouse. 2016-12-17 20:28: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 a12d0d082d Move input_translate_coord_viewport to video_driver.c 2016-12-07 08:07:11 +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
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 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 80798ab924 Remove hacky 'OSK Keyboard' overlay 2016-11-27 02:46:09 +01:00
twinaphex ce98a4dd19 Get rid of now unused input_driver_key_pressed 2016-10-29 04:57:28 +02:00
twinaphex f778bee856 Add input_menu_keys_pressed to master 2016-10-27 06:38:02 +02:00
aliaspider a4d745a471 preliminary port to the wiiu platform 2016-10-27 01:34:10 +01:00
twinaphex 948b206b60 Get rid of using hardcoded labels 2016-10-25 19:50:03 +02:00
twinaphex 8cc5b09428 Get rid of slow wrapper function input_driver_state 2016-10-23 04:38:08 +02:00
twinaphex e2b16a1f15 Use straight uint64_t types for input states 2016-10-22 17:03:20 +02:00
twinaphex 4b807b482f Create runloop_poll 2016-10-20 02:17:17 +02:00
twinaphex 93d98069b2 Cleanups 2016-09-12 16:45:26 +02:00
twinaphex 4571dc33fc header include cleanups 2016-09-05 17:29:19 +02:00
twinaphex 64d6e0facf (Vita) Implement proper gamepad menu toggle combo for Vita, and remove
old hack
2016-08-02 16:48:54 +02:00
twinaphex d77dd4f0d3 Add enums for gamepad menu toggle combos 2016-08-02 16:45:50 +02:00
twinaphex e0114e08ba Add type to retro_input_t 2016-06-25 09:05:56 +02:00
twinaphex 3dff698644 Turn retro_input_t into struct 2016-06-25 09:04:00 +02:00
twinaphex 7ce2ac082a Use retro_common_api.h 2016-06-03 05:54:21 +02:00
twinaphex 725c202498 Remove input_driver_ctl 2016-05-08 23:12:04 +02:00
twinaphex 2fee5edba4 Move linefeed enable enums to input_keyboard.c 2016-03-23 06:18:09 +01:00
twinaphex 2e080967b0 Reimplement grab mouse code a bit - we really need to drastically
rewrite this
2016-03-14 14:37:18 +01:00
twinaphex c14e281544 (Win32) Buildfix 2016-02-26 22:45:30 +01:00
twinaphex 0f8f980c8f Start reimplementing Zarch joypad input 2016-02-26 22:29:10 +01:00
twinaphex 6d8ee1f8d4 Remove input_driver_data_ptr_is_same 2016-02-13 07:40:02 +01:00
twinaphex 24bafd7ab9 Create RARCH_INPUT_CTL_GRAB_MOUSE 2016-02-13 07:36:45 +01:00
twinaphex 347a18cb30 Update input headers 2016-01-10 04:33:01 +01:00
twinaphex 4727ddb52d Create RARCH_INPUT_CTL_KEY_PRESSED 2015-12-10 12:47:36 +01:00
twinaphex 4ef98894a2 Header include cleanups 2015-12-06 21:40:55 +01:00
twinaphex 351077dc78 Start reimplementing audio/video/input driver deiniting 2015-12-04 14:30:59 +01:00
twinaphex 67518b3c6c Move input_driver_block_hotkey to input_driver_ctl as static
local variable
2015-12-04 08:24:43 +01:00
twinaphex 22d64ae3dc move driver->remote and driver->command to input_driver.c 2015-11-30 23:06:47 +01:00
twinaphex 0b24618cd5 Move driver->command to input_driver.c 2015-11-30 22:56:41 +01:00
twinaphex fc85cc46d1 Fix CXX_BUILD 2015-11-30 03:32:34 +01:00
twinaphex 871713dd9d Move driver->keyboard_linefeed_enable to input_driver.c 2015-11-30 03:23:35 +01:00
twinaphex d4e88324ac Move driver->osk_enable to input_driver.c 2015-11-30 03:14:26 +01:00
twinaphex df9f0fc6d1 Move input_data_own to input_driver.c 2015-11-29 20:34:35 +01:00
twinaphex 7a6f444823 No more references to driver->input from outside 2015-11-29 19:07:02 +01:00
twinaphex 83ba8f0545 (input_driver.c) Cleanups 2015-11-29 18:59:49 +01:00
twinaphex 5e1b2b3bfa Move driver->input_data to input_driver.c 2015-11-29 18:18:25 +01:00
twinaphex 1c867cedf0 Move nonblock_state to input_driver.c (NOTE: we probably need
to relocate this later on)
2015-11-29 17:53:11 +01:00
twinaphex 6fd6288337 Move block_libretro_input to input_driver.c 2015-11-29 17:33:29 +01:00
twinaphex 253649b0cf Move flushing_input to input_driver.c 2015-11-29 17:23:30 +01:00
twinaphex 9a743ec357 Create input_driver_key_pressed 2015-11-29 16:45:38 +01:00
twinaphex 3b903adea1 Don't try to access driver->input_data from outside 2015-11-28 18:26:05 +01:00
twinaphex be71e654f3 Create input_driver_get_data_ptr 2015-11-28 18:22:05 +01:00
twinaphex ed71129ee6 Create RARCH_INPUT_CTL_HAS_CAPABILITIES 2015-11-28 17:54:50 +01:00
twinaphex 28e035ec6b Move functiosn around 2015-11-28 02:09:11 +01:00
twinaphex cb98cbc1bf Create RARCH_INPUT_CTL_POLL 2015-11-25 20:39:46 +01:00
twinaphex 77e4faf5ea Move code around 2015-11-25 18:53:54 +01:00
twinaphex 9643edfac7 Create RARCH_INPUT_CTL_DESTROY 2015-11-25 18:49:37 +01:00
twinaphex 73ce9c0d23 Add another RARCH_INPUT_CTL_* command 2015-11-25 18:33:18 +01:00
twinaphex 92c0907e80 Create more RARCH_INPUT_CTL_* commands 2015-11-25 18:29:28 +01:00
twinaphex 14b2b8ada7 Start creating input_driver_ctl 2015-11-25 18:21:21 +01:00
twinaphex 08ae9df639 Merge input_sensor.c with input_driver.c 2015-11-25 03:29:18 +01:00
twinaphex c9db73e944 Contain driver->input_data usage pt. 2 2015-11-25 03:25:31 +01:00
twinaphex d2f771440b Contain driver->input_data usage 2015-11-25 03:15:22 +01:00
twinaphex f04f4c89c8 Turn another function static 2015-11-24 02:18:41 +01:00
Twinaphex 57e8cfe1f9 Totally reimplemented MFi support 2015-11-16 02:39:38 +01:00
twinaphex 22f85b11df Don't need this anymore 2015-11-07 20:59:12 +01:00
twinaphex e2ced6bd6a Don't need this additional code anymore 2015-11-07 20:47:29 +01:00
twinaphex 6512e95945 Pass device input mask to menu_input_frame 2015-10-22 19:34:25 +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 8a6333ddc1 Move defines around 2015-09-24 21:23:16 +02:00
twinaphex 450c665619 Create meta_key_pressed 2015-07-17 03:31:51 +02:00
twinaphex a2af5252c1 Get rid of input_driver_key_pressed 2015-07-17 03:09:12 +02:00
twinaphex 117fd48f15 Get rid of some superfluous wrapper functions 2015-07-12 11:14:41 +02:00
twinaphex 0107be2485 (GX) Refactor controls 2015-07-12 01:58:43 +02:00
twinaphex e2d510e4f6 (GX) No longer depend on global pointer in input driver 2015-07-10 18:44:11 +02:00
Alcaro 97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +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 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 8702141d90 (Cocoa) Start renaming input_apple to input_cocoa 2015-04-19 17:58:15 +02:00
twinaphex 8c6cce3945 Rename rarch_joypad_driver_t to input_device_driver_t 2015-04-14 16:37:59 +02:00
aliaspider 2045cee432 preliminary 3DS port. 2015-04-01 22:14:13 +01:00
twinaphex f5b2b8fdf7 Create input_driver_free 2015-03-23 07:15:41 +01:00
twinaphex 95664b038e Create input_driver_init 2015-03-23 07:07:28 +01:00
twinaphex 0d164162fc Create input_driver_grab_mouse 2015-03-23 04:31:11 +01:00
twinaphex 5f8407e16c Use input_driver_get_capabilities 2015-03-23 04:18:27 +01:00
twinaphex d9ba52e018 Create input_driver_get_joypad_driver 2015-03-23 03:40:09 +01:00
twinaphex c274ab94a0 Create input_driver_key_pressed 2015-03-23 03:22:57 +01:00
twinaphex 71e927020c Create input_driver_poll 2015-03-23 03:17:43 +01:00
twinaphex db1087ad33 Create input_driver_state 2015-03-23 03:04:05 +01:00
twinaphex 207181135c Create input_driver_keys_pressed 2015-02-15 01:19:06 +01:00
twinaphex 3ec9005c5c Move set_rumble function to input/input_driver.c 2015-01-19 04:16:43 +01:00
twinaphex 73a1f5afbb Rename input/overlay.c to input/input_overlay.c 2015-01-12 21:59:32 +01:00
twinaphex 4e5314b6bb Rename input_context.c to input_joypad_driver.c 2015-01-12 20:29:01 +01:00
twinaphex 487c5f58de Move input_driver.c to input/ 2015-01-12 18:39:27 +01:00