Commit Graph

957 Commits

Author SHA1 Message Date
twinaphex 5419757c40 Add input remapping saving/loading 2015-01-24 23:42:31 +01:00
Higor Eurípedes c756a643dd linuxraw_joypad.c - Fix button polling 2015-01-20 21:15:43 -03:00
Higor Eurípedes c3c734c159 linuxraw_joypad.c - Use C89 comments 2015-01-20 21:15:43 -03:00
Twinaphex 77a7b39e88 (OSX) Cleanups 2015-01-19 21:11:08 +01:00
twinaphex 40002970d3 Cleanup in input_remapping_save_file 2015-01-19 18:35:22 +01:00
twinaphex e1faebe5c2 (input_remapping) Get rid of some header includes 2015-01-19 18:17:34 +01:00
twinaphex 068943445f (Input) Add input remapping files 2015-01-19 18:16:34 +01:00
Twinaphex da24b62de9 (Apple) Build fixes 2015-01-19 05:05:41 +01:00
twinaphex 824f00be15 (input/connect) Cleanups 2015-01-19 05:01:31 +01:00
twinaphex 94ca700059 (input_common.c) Fix potential uninitialized variable in input_push_analog_dpad 2015-01-19 04:33:26 +01:00
twinaphex 3ec9005c5c Move set_rumble function to input/input_driver.c 2015-01-19 04:16:43 +01:00
twinaphex 20d844d15a Refactor input_push_analog_dpad 2015-01-18 20:36:52 +01:00
twinaphex 61f28bc000 Refactor input_keyboard_event 2015-01-18 19:39:58 +01:00
twinaphex be3ac6eccd Split up sensor code into its own file 2015-01-18 19:28:51 +01:00
Twinaphex a5b306406c More documentation 2015-01-18 09:25:48 +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 26ab324727 (OSX 10.6) Fix declaration shadows global variable warnings 2015-01-15 21:10:36 +01:00
twinaphex a2b05d31b1 (input) Cleanups 2015-01-14 23:15:24 +01:00
twinaphex 6cdaa4e282 (MSVC) Build fixes 2015-01-12 22:47:12 +01:00
twinaphex 069fb556f0 Rename graphics context drivers 2015-01-12 22:19:31 +01:00
twinaphex 73a1f5afbb Rename input/overlay.c to input/input_overlay.c 2015-01-12 21:59:32 +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 4e5314b6bb Rename input_context.c to input_joypad_driver.c 2015-01-12 20:29:01 +01:00
twinaphex 63281f8ca1 Move some code from driver.c to input_context.c 2015-01-12 20:25:07 +01:00
twinaphex 33cdd16c22 Move input/osk to osk/ 2015-01-12 19:02:30 +01:00
twinaphex bd0f0c3f63 Rename gfx_context.c to video_context.c 2015-01-12 18:47:39 +01:00
twinaphex 487c5f58de Move input_driver.c to input/ 2015-01-12 18:39:27 +01:00
twinaphex a3dc6203b2 Rename option_k local variables 2015-01-12 17:16:14 +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 2d66cdc3e7 Move joypad drivers to input/drivers_joypad 2015-01-12 06:28:39 +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 5f611f7270 More documentation for input_common.c 2015-01-12 04:19:57 +01:00
twinaphex b86022ed15 input/keyboard_line.c - Document 2015-01-12 03:13:03 +01:00
twinaphex b61ae369f7 (input_keymaps.c) Namespace changes and documentation 2015-01-12 02:52:52 +01:00
twinaphex 10c042f1dc Some simplifications in Windows input drivers 2015-01-11 01:29:19 +01:00
twinaphex 89902c3339 Remove unneeded header include in input_common.h 2015-01-11 00:10:32 +01:00
twinaphex d7f36af446 Move stuff around 2015-01-11 00:07:59 +01:00
twinaphex 75b6ed9545 Some more documentation for input_common.c 2015-01-10 21:17:34 +01:00
twinaphex e707c401c8 More documentation for input/input_joypad.c 2015-01-10 20:48:26 +01:00
twinaphex 34bf60cf51 Start documenting input_joypad.c 2015-01-10 20:34:37 +01:00
twinaphex 293319c890 Less header includes in input_joypad.h 2015-01-10 20:11:57 +01:00
twinaphex b4b81bd740 Split up input_common.c into two files - input_joypad.c and
input_common.c
2015-01-10 20:10:45 +01:00
twinaphex c6b6a06859 (udev_joypad.c) Declare variables at top 2015-01-10 19:55:47 +01:00
twinaphex 2743638b4e (udev_input.c) Some simplifications 2015-01-10 01:34:16 +01:00
twinaphex 77e9a97d13 (udev) Declare variables at top of function, C-style comments 2015-01-10 01:32:09 +01:00
twinaphex 326f940082 Cleanup overlay_new comment 2015-01-10 01:03:05 +01:00
twinaphex 9778801335 Start documenting overlay.c 2015-01-10 00:59:05 +01:00
twinaphex 5bac1cdb18 (input/overlay.c) Declare variables at top of function 2015-01-10 00:21:27 +01:00
twinaphex 575678dbb1 Remove unused back_button_enums for Android 2015-01-10 00:09:10 +01:00
twinaphex a8260a450f inut_autodetect.c - declare variables at top of function 2015-01-10 00:06:49 +01:00
twinaphex 05cef19e98 Document input_context.c 2015-01-10 00:03:04 +01:00
twinaphex 045a27bdcd (input_common.c) Move declaration of variables to top of function 2015-01-09 23:55:29 +01:00
twinaphex 99c9afa5cd Update PATH_MAX to PATH_MAX_LENGTH 2015-01-09 18:04:29 +01:00
twinaphex 8fc4db23dc (360) Silence some warnings 2015-01-09 17:48:20 +01:00
twinaphex 25536735a8 Build in autoconfig now conditionally if only HAVE_BUILTIN_AUTOCONFIG
is defined
2015-01-09 01:10:51 +01:00
twinaphex 957435cbfa Cleanups 2015-01-09 01:08:54 +01:00
twinaphex 90076c5fad Start using MAX_PATH_LENGTH - relying on MAX_PATH for 360 can cause
problems because it's defined at '260' and thus too small for some
strings
2015-01-07 20:42:36 +01:00
twinaphex ecf499c588 Update headers 2015-01-07 18:24:13 +01:00
twinaphex 453321c50b Start updating headers 2015-01-07 17:46:50 +01:00
twinaphex f39157e39a Change mentions of 'Player' to ' User' 2015-01-05 02:03:17 +01:00
twinaphex 7a456c6c3a Rename MAX_PLAYERS to MAX_USERS 2015-01-05 01:58:00 +01:00
twinaphex 24ebb87844 (Android) Add Android 2.3 fallback for engine_lookup_name (turned
this function into a function pointer)
2015-01-03 22:29:37 +01:00
twinaphex 494be5ee07 Move more overlay struct definitions to overlay header 2014-12-29 10:44:35 +01:00
twinaphex 49ad98e543 Add input_overlay_enable option 2014-12-29 10:16:44 +01:00
twinaphex 82f6c57966 Add new option 'Show Autoconfig Descriptor Labels' for more
comprehensible button labels per joypad - needs to be added per
autoconfig file
2014-12-16 06:21:18 +01:00
twinaphex 63fe97c0a5 Cleanup some useless casts pt. 2 2014-12-15 17:13:08 +01:00
CautiousAlbino cead63c83d Fix nasty breakage when joypad index >= MAX_PLAYERS.
No bounds checking and joypad index is apparently now unsigned so old
"disabled" values in config will now overflow instead ...
2014-12-15 14:10:07 +01:00
twinaphex 738d180816 Change some more instances of 'player' to 'user' 2014-12-05 14:21:04 +01:00
twinaphex 57918c0c24 Fix more 'player' variables to 'user' 2014-12-05 13:53:49 +01:00
Alcaro 0e26f0ea2d (SDL) Fix some creepy misuse of temporaries. 2014-11-29 22:11:40 +01:00
twinaphex c6cc3b8d90 CXX_BUILD - Fix some undefined reference linker errors 2014-11-29 21:18:45 +01:00
twinaphex 9ed2ba8412 [PATCH] Fix some C++ build issues. 2014-11-29 21:07:12 +01:00
twinaphex bb48597723 CXX_BUILD: buildfix #1 2014-11-29 21:01:21 +01:00
twinaphex 85ac84cb08 Implement joypad driver settings options too 2014-11-26 21:56:53 +01:00
twinaphex 3d15c0f892 Add wrapper functions for WPAD_StickX/WPAD_StickY 2014-11-19 02:51:34 +01:00
Alcaro 88b21b87e7 Remove pointless include. Not only does the file not use this header, it breaks the build if HAVE_UDEV is false. 2014-11-09 23:55:37 +01:00
Toad King 003ee30f93 fix JNI signatures for getVendorId/getProductId 2014-10-31 20:44:14 -05:00
twinaphex 659ec610ed (udev_input.c) Remove dependency on keyboard_line.h 2014-10-27 19:39:23 +01:00
twinaphex fb77db4592 Split up keyboard handling code for xkbcommon to separate file 2014-10-27 19:25:59 +01:00
twinaphex 97240bc7c1 (udev) Refactor mod_map again 2014-10-27 19:00:03 +01:00
twinaphex 37c5fb3765 (udev) Refactor mod_map struct 2014-10-27 18:47:45 +01:00
twinaphex 5f2a3e5bf7 (Joyconfig) Create retroarch-joyconfig-griffin.c - should be a lot
easier to maintain now instead of having to do constant Makefile
maintenance
2014-10-27 15:45:18 +01:00
twinaphex a43d4e74f6 (Apple) Move handle_icade_event to keyboard_event_apple.c too 2014-10-27 15:02:10 +01:00
Twinaphex 82520809d9 (Apple) Split up keyboard event code into its own file 2014-10-27 14:58:51 +01:00
twinaphex ebe1b21f47 (input/keyboard_event_x11.c) Change C++ comments into C comments 2014-10-27 14:49:15 +01:00
twinaphex bab9ee307d Add null joypad driver 2014-10-27 14:45:28 +01:00
twinaphex 9214469470 Rename to gfx/context/win32_common.c to input/keyboard_event_win32.c 2014-10-27 06:17:07 +01:00
twinaphex e3d3316502 Move keyboard event X11 code to separate file 2014-10-27 06:05:52 +01:00
twinaphex f06ff82000 (Emscripten) Add input_keymaps.h header include for rwebinput_input.c 2014-10-27 04:55:48 +01:00
twinaphex dd53241a24 Some more cleanups in input_common.c 2014-10-27 04:39:15 +01:00
twinaphex c6ac686e51 Split up input_common.c into input_common.c and input_keymaps.c 2014-10-27 04:27:48 +01:00
twinaphex 440f08ac28 (Windows Mingw) Make some dependencies optional by default 2014-10-26 21:17:11 +01:00
Lioncash b1f95f85ba overlay: Fix potential memory leak. 2014-10-26 13:36:48 -04:00
twinaphex 288c6941de (SDK) Add libretro-sdk/include/clamping.h 2014-10-26 02:18:56 +01:00
twinaphex 0c4de816f9 Dont' have input_common.h include input_autodetect.h 2014-10-26 01:53:13 +02:00
twinaphex dc0688f57f Reduce header dependencies 2014-10-26 01:15:41 +02:00
Twinaphex b437565059 Prevent redefinition of struct 2014-10-26 01:09:52 +02:00
Twinaphex 182180c6b9 (Apple input) Change mouse_delta[0]/mouse_delta[1] to mouse_x/mouse_y 2014-10-26 00:37:20 +02:00
twinaphex a4065ae34d Split off input_context code into separate file 2014-10-25 19:56:40 +02:00
twinaphex 20f1faa03f (input_common.c) small cleanup 2014-10-25 10:07:04 +02:00
twinaphex 8349ade076 Refactor input_joypad_pressed somewhat 2014-10-25 10:06:40 +02:00
twinaphex f08f78e86a (joypad_connection) start calling 'connect' function 'init'
and 'disconnect' 'deinit'
2014-10-22 07:59:52 +02:00
twinaphex 2997af48fa Move config-file code to SDK 2014-10-22 03:35:04 +02:00
twinaphex 3ec3004142 (XDK1) Build fixes 2014-10-22 02:05:01 +02:00
twinaphex 174d011bed Move dir_list to SDK 2014-10-22 01:13:05 +02:00
twinaphex 9a9fa6532a Move file_path.c to libretro SDK 2014-10-22 00:23:06 +02:00
twinaphex d3629f06f1 Rename file.c/file.h to content.c/content.h 2014-10-21 23:44:03 +02:00
twinaphex 94c3f6a925 Change 'id' variable names to 'ident' 2014-10-21 08:48:58 +02:00
twinaphex 7472922ee0 Move compat/ over to libretro SDK 2014-10-21 07:58:58 +02:00
twinaphex e33c6ef6b2 (360) Build fixes 2014-10-21 05:44:09 +02:00
twinaphex c62d52de0f Start properly implementing libretro SDK for boolean.h include
header, glsym, and rthreads
2014-10-21 05:05:52 +02:00
twinaphex 00115d1ebb Backport Lioncash's changes - https://github.com/libretro/RetroArch/pull/1170 2014-10-21 02:28:10 +02:00
Twinaphex 79ff736e4c (overlay.c) Get rid of shadowed declaration warning 2014-10-20 23:11:28 +02:00
Twinaphex c6a94593cf (Apple) Build fixes 2014-10-20 21:52:33 +02:00
twinaphex 42bb37816e Take file_path.h include out of file.h 2014-10-20 21:51:04 +02:00
twinaphex 0fb301fa43 (joypad/connect) Change 'index' local variables 2014-10-20 20:32:41 +02:00
twinaphex faeca01e7a Change local index variables 2014-10-20 20:31:00 +02:00
twinaphex dd79cf0b93 (OSX) Change 'index' to 'idx' to avoid declaration of index shadows a global
declaration on OSX 10.6
2014-10-20 03:56:31 +02:00
Mike Robinson 37550aef02 Non-blocking parport open to handle previous unclean shutdowns 2014-10-18 19:11:11 +01:00
twinaphex e72777aada (GX) Make gx_input_get_joypad_driver slightly more robust 2014-10-18 08:01:19 +02:00
Toad King 410539445a fix inputs getting lost on game load on GX 2014-10-18 00:55:13 -05:00
Twinaphex 6f951a9ac1 (Apple) Rewrite apple_input_keyboard_event - already transform the
modifier events before calling the function
2014-10-18 06:33:11 +02:00
Mike Robinson 00f6a17804 Fixed version of 72ca37f9d6 2014-10-17 06:41:43 +01:00
twinaphex 72ca37f9d6 Revert "Update parport_joypad.c driver - mrob - confirm if things still"
This reverts commit 04b6287d77.
2014-10-17 05:58:28 +02:00
twinaphex 04b6287d77 Update parport_joypad.c driver - mrob - confirm if things still
work as expected - if not, update and send PR - button variables
need to be no longer a bool array variable
2014-10-17 05:57:10 +02:00
twinaphex 303aaede17 Update to connect_ps3.c 2014-10-16 22:37:06 +02:00
twinaphex 85c4c15c84 (Linuxraw joypad) Update linuxraw joypad driver 2014-10-16 22:30:51 +02:00
twinaphex 3fff1abb83 Refactor buttons variable in udev joypad driver 2014-10-16 22:25:09 +02:00
twinaphex b61b6fa84b Move Retrolaunch to separate repo 2014-10-16 07:34:59 +02:00
twinaphex 7c842f9342 More stdio.h header include removals 2014-10-16 07:29:42 +02:00
Twinaphex c9bd4ad589 Comment out unused code 2014-10-15 03:25:36 +02:00
Twinaphex 3eee271e2c Merge pull request #1154 from heuripedes/udev-joypad-ids
(udev) Detect joypad vendor and product id
2014-10-15 01:24:27 +02:00
Higor Eurípedes c9917ce6fe (udev) Detect joypad vendor and product id 2014-10-14 20:18:50 -03:00
twinaphex 682259eec5 (linuxraw_input.c) Check for null pointer dereferences 2014-10-15 00:30:23 +02:00
Twinaphex d82929f031 Silence warnings in overlay.c 2014-10-14 22:52:13 +02:00
Twinaphex 705c542911 (input/overlay.c) input_overlay_resolve_targets - do explicit cast 2014-10-14 22:41:35 +02:00
Twinaphex 800bf13846 (joypad_connection.h) Fix 'no previous prototype for function' warning 2014-10-14 19:01:52 +02:00
Twinaphex fe8f22b688 input_common.c - Get rid of variable shadowing warnings 2014-10-14 18:35:38 +02:00
Twinaphex 27c14755a0 input_autodetect.c - Fix 'declaration shadows a global variable' warning 2014-10-14 18:31:30 +02:00
Lioncash 316870201f Fix possible memory leaks in hidpad_ps3_connect, hidpad_ps4_connect, and hidpad_wii_connect 2014-10-13 17:39:14 -04:00
twinaphex 39dc99889f Revert "(GX) Experiment to see if menu triggering can still work through this"
This reverts commit b490e22080.
2014-10-13 06:09:29 +02:00
twinaphex b490e22080 (GX) Experiment to see if menu triggering can still work through this
new mechanism
2014-10-13 05:16:59 +02:00
Toad King 264cfb553c fix case sensitivity in controller matching on GX 2014-10-12 18:07:45 -05:00
Mike Robinson 68dc27eea5 Initialize parport pin report buffer 2014-10-10 00:12:44 +01:00
AndresSM 7249ebc00c fix disk_next, add option for disk_prev 2014-10-07 20:19:12 -05:00
Twinaphex 945376ab2d (iOS) Add more safeguards in apple_touch_event and apple_input_keyboard
event
2014-10-07 04:15:18 +02:00