Commit Graph

4404 Commits

Author SHA1 Message Date
Themaister c2f2377f7b Merge branch 'master' into cd-swap 2013-02-23 23:15:53 +01:00
Themaister c9e6f15861 Add out-of-order overlays. 2013-02-23 22:57:39 +01:00
Themaister e3dfba2c34 Add preliminary disk swapping interface.
Works with Mednafen's disk swapping model.
2013-02-21 23:44:07 +01:00
Themaister 041bfecf21 Avoid "double-tapping" overlay on overlay_next. 2013-02-17 15:00:38 +01:00
Themaister bdabb39eb6 Add more verbose error logging to overlay. 2013-02-17 01:04:04 +01:00
Themaister 7d2e5515af Allow scaling of overlays. 2013-02-03 23:36:27 +01:00
ToadKing 7967086058 (Android) set opacity overlay 2013-02-01 20:29:42 -05:00
Themaister f74467c81b Set alpha default more explicitly. 2013-01-29 21:53:03 +01:00
Themaister eb979732b4 Add alpha modulation to overlays. 2013-01-29 21:51:15 +01:00
Themaister 79dd7f79d7 Fix build for Win32. 2013-01-11 16:44:58 +01:00
Themaister 8f9e65b5a7 Allow triggering multiple buttons with one desc. 2013-01-11 16:43:12 +01:00
Themaister 312980ee30 Add support for full-screen overlays. 2013-01-11 16:23:04 +01:00
Themaister 0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
Themaister 7458f7888f Set up multitouch querying. 2012-12-27 12:26:13 +01:00
Themaister 57d7643b86 Fix compiler warnings. 2012-12-25 19:05:30 +01:00
Themaister 1f9caf554c Allow custom geometry of overlay. 2012-12-22 16:09:15 +01:00
Themaister 34bd32c1fd Add RETRO_OVERLAY_NEXT bind. 2012-12-22 15:33:28 +01:00
Themaister 023443e1aa Initial overlay config work. 2012-12-22 13:40:15 +01:00
Themaister ca9f081d27 Make input overlay configurable. 2012-12-20 20:23:53 +01:00
Themaister cc2e4015b5 Allow enable/disable overlay. 2012-12-20 15:37:04 +01:00
Themaister 47a98ef205 Make overlay polling completely independent. 2012-12-20 15:33:54 +01:00
Themaister 45f808d00c Change hardcoded path. 2012-12-20 12:54:54 +01:00
Themaister d5b294c894 Update coords for basic overlay.
Sort of usable now.
2012-12-20 12:47:18 +01:00
Themaister 1250fae7f1 Basic overlay POC works.
Add support for X11.
2012-12-20 12:24:49 +01:00
Themaister 46ae26211f Fix Mingw build. 2012-12-19 21:27:27 +01:00
OV2 369615f808 win32: fix msvc build 2012-12-19 21:18:38 +01:00
Themaister 5185524b46 Use common code for handling keysym translations. 2012-12-08 13:26:10 +01:00
twinaphex 966cc93b5e Refactor of driver function hooks 2012-11-27 00:50:56 +01:00
Themaister 0e729bcaa0 Style nits. 2012-11-15 09:40:31 +01:00
OV2 54d39dff74 win32: make d3d9 compile in msvc, add linker pragmas to source files 2012-11-14 21:07:06 +01:00
Themaister f3b2c8748a Add RETRO_DEVICE_POINTER support to SDL/Xv. 2012-10-28 11:04:07 +01:00
Themaister dc8f55c303 Add mouse support to DInput. 2012-10-28 10:42:20 +01:00
Themaister 1908a81e1c Add RETRO_DEVICE_POINTER.
Implemented only for X11 so far.

Also clears up viewport_size call.
Changed to viewport_info to also grab X/Y info.
2012-10-28 00:38:31 +02:00
twinaphex 96f5c78304 (Android) removed bifrost.c - made libretroarch.so now a native
activity
2012-10-14 03:37:08 +02:00
Themaister 6fd1940741 Fix screensaver appearing in fullscreen. 2012-10-13 19:53:04 +02:00
Themaister 9208663c53 Add basic Xinerama support to X11. 2012-10-12 19:58:54 +02:00
Themaister 5e70581a5f Return axis values that makes more sense. 2012-09-30 16:11:13 +02:00
Themaister c6c68dfcf1 Don't return bogus if joypad isn't connected. 2012-09-30 15:59:05 +02:00
Themaister dd6d27c108 Add WGL context. 2012-09-30 14:41:58 +02:00
Themaister d40cd53e24 Rewrite retroarch-joyconfig.
Rewrites a large chunk of retroarch-joyconfig to work with "any" joypad
driver. This allows e.g. the tool to work without X. SDL event pumps
require X to work (for some reason).
2012-09-29 21:57:03 +02:00
Themaister f8de693eef Use true fullscreen in X/EGL. 2012-09-29 10:47:55 +02:00
Themaister 65fa84d3b7 Make sure to get initial state of joypad. 2012-09-29 09:57:28 +02:00
Themaister 258a29b9b1 Bind to correct joypad button in X11. 2012-09-29 00:34:59 +02:00
Themaister f5b6ae8e7e Raw Linux joypads work. 2012-09-29 00:27:09 +02:00
Themaister 04e3fe185f Can build without SDL now (only RetroArch). 2012-09-28 23:34:19 +02:00
Themaister c655c1d4e5 Big refactor of joypad input. 2012-09-28 23:06:16 +02:00
Themaister df32409fb5 Add basic mouse support to X11 input. 2012-09-26 15:27:25 +02:00
Themaister d0e220bbf1 Refactor all GL context handling code. 2012-09-25 01:37:23 +02:00
Themaister ae8ab33e81 Properly be able to reinit KMS. 2012-09-24 00:01:04 +02:00
Themaister 192ca096c9 Refactor out input_conv_analog* 2012-09-22 09:57:04 +02:00
Themaister bd9f8dbd3a Add RETRO_DEVICE_ANALOG to linuxraw. 2012-09-22 01:04:13 +02:00
Themaister 6d2c0cdb17 Only allow keyboard input when in focus int x_input. 2012-09-16 01:27:32 +02:00
Themaister ff60bcb5e5 Add experimental X/EGL support. 2012-09-15 15:17:34 +02:00
Themaister 9fc3c07181 Fallback for RETRO_DEVICE_ANALOG in X11 input. 2012-09-15 11:41:28 +02:00
Themaister a4262fd0d6 Purge SDL_MODERN.
SDL 2.0 differs far more than 1.3 did, and it makes no sense
to support both now.
2012-09-12 23:37:25 +02:00
Themaister 488d2c5a63 Move keysyms to libretro.h.
Should allow RETRO_KEYBOARD to work on GL/SDL/X11 drivers.
2012-07-28 07:39:05 +02:00
Twinaphex e0f4953de8 (RARCH_CONSOLE) Add second param to set_default_keybind_lut (port
is player no)
2012-07-28 02:28:10 +02:00
Themaister 7346d0f959 Suspend screensaver on SDL/GL as well. 2012-07-28 01:55:00 +02:00
Twinaphex b29b04b4b0 (RARCH_CONSOLE) Add 'device' param to set_default_keybind_lut and
set_analog_dpad_mapping
2012-07-28 01:37:15 +02:00
Themaister ba05aa9f8b Place #ifdeffed stuff in null input together. 2012-07-27 16:06:39 +02:00
Twinaphex bf9980d8bc (RARCH_CONSOLE) Control refactor - add post_init and set_analog_to_dpad_mapping
members
2012-07-27 15:46:15 +02:00
Themaister e13b2e1cb5 Cleanup screensaver code. 2012-07-27 15:47:56 +02:00
Themaister ff9820af68 Merge branch 'master' of github.com:Themaister/RetroArch
Conflicts:
	gfx/gfx_common.c
2012-07-27 15:37:10 +02:00
Twinaphex 811abcf612 (RARCH_CONSOLE) Further Input rewrite for console ports 2012-07-25 21:02:01 +02:00
Themaister dd3a1d0df2 Error out in linuxinput if stdin is used for rom loading. 2012-07-25 04:50:47 +02:00
Themaister 38f7673fac Add command functionality to stdin. 2012-07-25 04:50:46 +02:00
twinaphex 14eb5a53cb (360) Move 360 Xinput driver back to 360 dir 2012-07-16 04:24:46 +02:00
twinaphex 57f6a06647 (360) rarch_xinput2 - Turn hardcoded values into bitshifts 2012-07-14 06:30:39 +02:00
twinaphex 6b04a46c59 (Xbox 1) (Broken) controls 2012-07-14 06:15:03 +02:00
twinaphex 5431601083 (360/Xbox 1) Input changes 2012-07-12 02:27:00 +02:00
twinaphex c3d9899dd1 (360/Xbox 1) Split up video/input drivers for systems 2012-07-08 21:42:26 +02:00
twinaphex 80afd6a73f (Xbox 1) Inserted XInput 1 code 2012-07-07 22:10:27 +03:00
twinaphex 0951020196 (360/Xbox 1) Refactor XInput driver with portability in mind 2012-07-07 20:56:46 +03:00
twinaphex 9d5978cb3e (360/Xbox 1) xdk360_video changed 2012-07-07 20:15:06 +03:00
Twinaphex c3d40d0f5a Snes exorcism 2012-07-07 17:19:32 +02:00
Twinaphex 5b8c426b3c (360) Xinput2 driver moved to input/ 2012-07-07 16:20:31 +02:00
Themaister c440c7a50a Add support for RETRO_DEVICE_ANALOG. 2012-06-28 18:32:06 +02:00
Toad King ea806a6203 Merge branch 'master' of http://github.com/Themaister/RetroArch 2012-06-22 21:11:44 -04:00
Themaister 084bdcef97 Style nitting. 2012-06-22 19:17:28 +02:00
Themaister acda9dea35 Forgot to commit null drivers ... 2012-06-20 00:44:40 +02:00
Toad King 91e7855bd6 only detect CTRL+C for SIGINT, not C+CTRL 2012-06-19 15:26:09 -04:00
Toad King c5a2fbc6e6 EOL fixes 2012-06-19 15:01:34 -04:00
Toad King ed14c8c6b8 misc. fixes
add ctrl+c handler to linuxraw_input
2012-06-19 14:49:38 -04:00
Toad King 3e1b621e7a signal -> sigaction 2012-06-19 14:14:00 -04:00
Toad King 0337e4fc0f move SIGINT and SIGTERM handlers to video driver 2012-06-19 13:40:49 -04:00
Toad King 55b7267694 tabs -> 3 spaces 2012-06-19 12:44:10 -04:00
Toad King 9a35040fe6 try to restore keyboard mode on program crashes
use keycode defines instead of numbers
2012-06-19 12:42:08 -04:00
Toad King 0ca21ef321 ignore extended scancodes 2012-06-16 03:58:21 -04:00
Toad King ec87f858f2 Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-05-28 02:27:25 -04:00
Twinaphex 1386e2ee90 Restructuring of sdlwrap.c for portability reasons -
could need a code review
2012-05-26 04:47:24 +02:00
Toad King 6c79d66e1b linuxraw input: gets input straight from stdin
WARNING: this mode uses a raw keyboard mode. if the emulator does not exit cleanly, you could be left at a terminal with no form of input. do not use this mode for testing.
2012-05-25 15:44:39 -04:00
Themaister 37bb784e70 Move ssnes_dinput. 2012-04-22 12:15:51 +02:00
Themaister ce740f8948 More fixups. 2012-04-21 23:31:57 +02:00
Themaister aab8fb6151 ssnes_* => rarch_*. 2012-04-21 23:25:32 +02:00
Themaister 9ab51ad23a SSNES => RetroArch. 2012-04-21 23:17:43 +02:00
Themaister 186ea8898b Add LIGHTGUN_START. 2012-04-15 17:08:43 +02:00
Themaister 16d123dfab Fix home/end/pgup/pgdown keys. 2012-04-11 18:56:21 +02:00
Themaister ba2e913908 Use unsigned port. 2012-04-09 22:05:26 +02:00
Themaister e3a71a8c5b Fixup headers. 2012-04-09 22:05:26 +02:00
Themaister 5d51942f69 libretro fixups. 2012-04-09 22:04:43 +02:00
Themaister 62c96ea937 Change license header. 2012-04-09 22:03:57 +02:00
Themaister 9698cd7dbd Change headers. 2012-04-09 22:03:57 +02:00
Themaister 35a9123bf8 Fix build on Mingw CXX_BUILD. 2012-03-30 19:15:18 +02:00
Twinaphex db6b9ba4a3 (SSNES_CONSOLE) Merged input_luts.c with console_ext.c 2012-03-25 01:56:27 +01:00
Twinaphex e0295a726a (PS3) Merged Cellframework2 pad_input.c with ps3_input.c from SSNES 2012-03-19 02:55:13 +01:00
Themaister 9ab02b12be Move compat functionality to compat/. 2012-03-16 23:26:57 +01:00
TwinAphex51224 dd9f4be2aa (Wii) Some work on Wii port - included szlib.c - moved input-related
function over to input_luts.c
2012-03-12 22:40:04 +01:00
TwinAphex51224 81988fc1ef (360) Don't include D3D/Netcode where not needed through NOD3D/
NONET defines
2012-03-11 16:17:42 +01:00
Themaister 6b552cfba1 Revert derp. 2012-03-09 18:20:03 +01:00
Themaister 848a67252f Fix subtle regression. 2012-03-09 18:18:35 +01:00
Themaister ca0986064d Micronit (pt. 2). 2012-03-06 23:50:44 +01:00
TwinAphex51224 f7c2bfe530 (PS3) Libsnes ports can now set per-system default keybind names 2012-03-06 16:06:47 +01:00
TwinAphex51224 3239edccb9 (360) Add keybind LUTs for 360 too 2012-03-06 12:59:40 +01:00
TwinAphex51224 fe0da105b5 (PS3) Add ssnes_ * to LUTs 2012-03-05 23:40:40 +01:00
Themaister 4c361bc648 Nit. 2012-03-05 23:48:14 +01:00
TwinAphex51224 9d17ccf4f3 (PS3) Ping pong commit to get everything working again 2012-03-05 23:32:51 +01:00
Themaister 25a97b1d8c Refactor. 2012-03-05 23:32:38 +01:00
TwinAphex51224 cd9dd6511d (PS3) Input can now be reconfigured 2012-03-05 23:01:26 +01:00
TwinAphex51224 7e1e293547 (PS3) Input changes 2012-03-05 21:30:28 +01:00
Themaister 4bd53c0b96 Properly extern. 2012-03-05 19:49:19 +01:00
Themaister 47f95020f0 Style nits. 2012-03-05 18:01:27 +01:00
TwinAphex51224 e4506d5a3e (PS3) Keybind name LUT 2012-03-05 17:33:41 +01:00
TwinAphex51224 f453ee7954 (PS3) Input LUTs 2012-03-05 16:57:43 +01:00
Themaister aac2533075 Streamline hat lookup. 2012-02-18 12:32:49 +01:00
Themaister 947d2a3514 Fixed joypad index lookup. 2012-02-18 12:09:20 +01:00
Themaister 3fd630e062 Log anatomy of input device. 2012-02-18 11:59:55 +01:00
Themaister 3bda32d6f1 Add SET_VARIABLES interface. 2012-02-06 16:13:29 +01:00
Themaister 08686bcd06 Debork input some more ... 2012-01-30 01:45:18 +01:00
Themaister 5b0a948797 Refactor input config. 2012-01-30 01:20:35 +01:00
Themaister b4248038fb Update license headers. 2012-01-08 01:12:05 +01:00
Themaister eac468ba19 MSVC compat. 2011-12-25 01:38:59 +01:00
Themaister d5fca50a2f Can build for C++. 2011-12-24 15:26:01 +01:00
Themaister a5b3f421d1 Fix include paths for libsnes header. 2011-11-30 17:32:30 +01:00
Themaister 0f010cf3d2 Fix style nits. 2011-11-02 19:31:36 +01:00
Themaister 953b5daf0a Pause hooked up. 2011-10-16 02:00:55 +02:00
Themaister 642316a1e2 Somewhat haphazard. Can't find some needed API calls :\ 2011-09-13 18:50:40 +02:00
Themaister 87d34deb0c Can build with SDL 1.3 on Win32. 2011-09-13 14:57:42 +02:00
Themaister 23516572b7 Use SK_* keysyms (pretty much SDL 1.2). 2011-09-13 14:40:33 +02:00
Themaister 924848fdad Start working towards SDL 1.2/1.3 compat. 2011-09-13 14:06:49 +02:00
Themaister 5cb2863e6e Fix up Win64 warnings/errors. 2011-08-19 13:33:10 +02:00
Themaister f79eafe449 Should perhaps continue if one joypad failed. 2011-06-12 10:42:42 +02:00
Themaister 111b159373 Should fix dinput. 2011-06-12 10:37:04 +02:00
Themaister d744167865 Small cleanup. 2011-06-11 22:46:51 +02:00
Themaister 99a1784aaf Move window logic away from SDL input.
We weren't using the event loop anyways ...
2011-06-11 12:54:14 +02:00
Themaister b6ff98cf18 Should fix DInput crash. 2011-06-10 18:01:44 +02:00
Themaister 2dcccc7cda Fix some includes and stuff. 2011-06-10 17:55:40 +02:00
Themaister d03855c655 Add some sanity logging. 2011-06-10 17:47:16 +02:00
Themaister 69227bc1ca Alter design. Use DInput as piggyback only. 2011-06-10 17:34:04 +02:00
Themaister 851debf1e4 Start working on DInput. 2011-06-10 16:55:05 +02:00
Themaister 5f5013871a Should fix tilde/grave key. 2011-05-17 18:52:00 +02:00
Themaister 21b046cdd1 Add more binds to X11 input. 2011-05-15 15:54:46 +02:00
Themaister 703cfadf63 Fix up X input. 2011-03-13 12:02:06 +01:00
Themaister adfd461c3e Start on XVideo 2011-03-13 04:51:09 +01:00
Themaister bb79dbaa98 Getting ready for an eventual XVideo driver. 2011-03-13 00:44:49 +01:00
Themaister 93202f191c Add pausing when window loses focus :p 2011-02-05 21:45:44 +01:00
Themaister 5bcde44684 Remove some undeeded warning/error messages. 2011-01-27 23:05:20 +01:00
Themaister 2267c7d048 Update licensing headers. 2011-01-23 20:29:28 +01:00
Themaister c7e6e73bcb Fix a blooper in headers. 2011-01-17 20:54:58 +01:00
Themaister 422ba8a801 Add support for justifiers and multitap. 2011-01-10 16:53:37 +01:00
Themaister dbd15a1d09 Add more super scope stuff. Crude fix in Makefile. 2011-01-10 15:01:34 +01:00
Themaister f9bd0ab672 Fix mouse code for the most part. :) 2011-01-10 14:29:00 +01:00
Themaister ca42b8ce4b Add a comment on mouse stuff. 2011-01-10 09:08:39 +01:00
Themaister dad1ead3e0 Some crude mouse support, but it does not seem to work. :( 2011-01-10 08:40:44 +01:00
Themaister a7e35571cd Add mapping support for joypads. 2011-01-10 08:18:03 +01:00
Themaister 74f118bb0a remove some stupid code 2011-01-09 14:33:59 +01:00
Themaister 23f112385a Remove unneeded include 2011-01-09 00:28:10 +01:00
Themaister a365989557 Add support for joypad "hats". 2011-01-09 00:27:30 +01:00
Themaister b302026b84 Remove joypads from event queue. 2011-01-08 19:28:49 +01:00
Themaister 08e1c5f0fd Add a hack to "fix" endless loop when using axis to change fullscreen. 2011-01-08 19:22:58 +01:00
Themaister 2a5addc79f Clean up input handling some more. Removes the hack to set fast forward
toggles.
2011-01-08 18:37:45 +01:00
Themaister 35124dc288 Use the more portable "SDL.h" include convention for SDL. 2011-01-07 18:11:06 +01:00
Themaister 86e080476a Fixes here and there... 2011-01-06 20:01:32 +01:00
Themaister 4cc3f7aaab Start moving over to SDL rather than GLFW to minimize dependencies. 2011-01-06 18:34:11 +01:00
Twinaphex a26482d302 (mfi_joypad.m) Use local headers 2015-11-17 08:29:21 +01:00
twinaphex 4e6cb53920 (keyboard_event_win32.cpp) More simplifications 2015-11-17 07:50:36 +01:00
twinaphex b5573f0463 Simplify keyboard_event_win32.cpp 2015-11-17 07:45:43 +01:00
twinaphex 89a6bd3fd2 remove useless extern 2015-11-17 07:32:48 +01:00
twinaphex 3bc125b6da move most xkbcommon code to keyboard_event_xkb.c 2015-11-17 07:28:45 +01:00
twinaphex 53aa251008 (joypad_connection.h) Cleanups 2015-11-17 06:54:59 +01:00
twinaphex 03b1f36af1 Move linux_common to input/common/ 2015-11-17 06:46:32 +01:00
twinaphex aa208993d5 btstack_hid.h - remove 2015-11-17 06:37:33 +01:00
Twinaphex f56cb5d8cb (Apple) Buildfixes 2015-11-17 06:30:11 +01:00
twinaphex 30d0e58bb9 (Apple) Move keymap to input_keymaps.c 2015-11-17 06:25:37 +01:00
twinaphex 00dfcc709b Style nits 2015-11-17 06:23:14 +01:00
twinaphex 66ba102271 (MFi) Style nits 2015-11-16 11:14:36 +01:00
twinaphex f967b07f19 (MFi) Buildfix 2015-11-16 11:12:00 +01:00
twinaphex 0e0db66f79 (mfi_joypad.m) should now work for regular mfi pads, courtesy of vinikun-mac 2015-11-16 10:34:02 +01:00
Twinaphex c84b76c394 (MFi) No longer let MFi pad go through 'pad connection' 2015-11-16 08:45:51 +01:00
twinaphex 8918df95e1 Add encoding_utf to libretro-common 2015-11-16 07:24:21 +01:00
twinaphex 2fe29f56be remove useless forward declaration 2015-11-16 07:13:37 +01:00
twinaphex ca70b5af12 remove useless forward declaration 2015-11-16 07:12:52 +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 de9be22071 (btstack_hid.c) Add RUN_LOOP_POSIX else conditional 2015-11-16 06:53:29 +01:00
twinaphex 170b4bbbe2 (btstack_hid.c) Add Cocoa ifdef 2015-11-16 06:52:26 +01:00
Twinaphex e88fff9985 (iohidmanager_hid.c) Fix header dependencies 2015-11-16 06:49:40 +01:00
Twinaphex 5dee9838c4 (iohidmanager_hid.c) remove Cocoa dependencies 2015-11-16 06:48:02 +01:00
twinaphex 08bb85e509 (OSX) apple->buttons refactored away 2015-11-16 06:46:29 +01:00
twinaphex 018db7c081 (IOHIDManager) buildfix 2015-11-16 06:40:07 +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 1c304779a9 (mfi_joypad.m) Remove cocoa header 2015-11-16 06:13:28 +01:00
twinaphex 4d1d422541 (mfi_joypad.m) Remove dependency on CocoaTouch data 2015-11-16 06:07:24 +01:00
twinaphex e882709e63 (mfi_joypad.m) Indenting nits 2015-11-16 05:10:20 +01:00
Twinaphex ecdaa1885b Nit 2015-11-16 04:41:19 +01:00
Twinaphex 730ae2c52d (mfi_joypad.m) Cleanup 2015-11-16 04:38:44 +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 4f55b360ac Create HAVE_BTSTACK ifdef 2015-11-16 04:17:13 +01:00
twinaphex 7b7869eb4c (btstack_hid.c) Cleanup 2015-11-16 04:14:48 +01:00
twinaphex 595646fea4 (btstack_hid.c) Move variables to top 2015-11-16 04:00:59 +01:00
twinaphex 5bdc91c814 Rename mfi_joypad to sec_joypad 2015-11-16 03:57:52 +01:00
Twinaphex 83b38cd5c1 Remove mfi_hid.h too 2015-11-16 03:56:08 +01:00
twinaphex 8b56ee5624 (mfi_joypad.m) Style nits 2015-11-16 03:53:36 +01:00
twinaphex f1ba8d62d7 remove mfi_hid.m 2015-11-16 03:52:44 +01:00
Twinaphex db35a28e50 Revert "Refactor slots to be a part of input_hid_driver.c now"
This reverts commit 646ded9d1c.
2015-11-16 03:48:51 +01:00
Twinaphex f089fff42f Revert "Fix warnings"
This reverts commit 8d67d5175e.
2015-11-16 03:48:44 +01:00
twinaphex 8d67d5175e Fix warnings 2015-11-16 03:40:57 +01:00
twinaphex 646ded9d1c Refactor slots to be a part of input_hid_driver.c now 2015-11-16 03:39:40 +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 9fbba11275 Add preliminary mfi_joypad.m 2015-11-16 01:29:51 +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 bbb80a8ffa (BTStack HID) Should read axes too from apple struct 2015-11-15 23:45:03 +01:00
twinaphex 149d892910 Cleanup config_file.c 2015-11-15 22:28:57 +01:00
twinaphex aed8d3d1c2 Fix some memory leaks to do with overrides, pass conf to
menu_input_remapping_load
2015-11-15 22:02:24 +01:00
Arche-san b9a0793444 os x hid : reorder axis (keep compatibility with others platforms) 2015-11-15 13:11:40 +01:00
radius 805b368345 print a not configured message only if both builtin and file based autoconfs are not present 2015-11-14 23:49:41 -05:00
radius b6d5449ae6 allow user defined autoconf files to take precedence over builtin 2015-11-14 23:49:40 -05:00
twinaphex b5ddb1de45 X11 Keymap - add Calculator key too 2015-11-15 05:15:44 +01:00
twinaphex d87c895fd8 rarch_key_map_x11 - hook up XK_KP_Up/XK_KP_DOwn/XK_KP_Left/XK_KP_Right 2015-11-15 05:08:45 +01:00
twinaphex 5c6840323b (SNES30 8bitdo) Add select/start binds 2015-11-15 02:45:16 +01:00
twinaphex 3646e1a2dd (iCade) Add SNES30 8bitdo key mappings 2015-11-15 02:26:31 +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 983b488d59 (iOS) Buildfix 2015-11-13 22:13:57 +01:00
twinaphex 3282c16498 (keyboard_event_apple) Hook up gamepad mapping type setting 2015-11-13 22:12:49 +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 8e373af966 (iPega) Should fix X button 2015-11-13 21:28:13 +01:00
twinaphex fc097f47e8 (iPega PG-9017) Hook up X button 2015-11-13 21:25:43 +01:00
twinaphex f30f2713bf (iCade) Add 8-bitty configuration 2015-11-13 21:15:40 +01:00
twinaphex b5d4aeb5da (keyboard_event_apple.c) Style nits 2015-11-13 20:04:44 +01:00
Twinaphex 5b7f58bec5 (iOS) Rewrite iCade code entirely - start out with iPega PG9017 profile 2015-11-13 20:03:14 +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 ba00560f2b Revert "Revert "(iOS) Add Small Keyboard/iCade Enable options""
This reverts commit 834e4d848e.
2015-11-13 01:50:22 +01:00
Twinaphex 834e4d848e Revert "(iOS) Add Small Keyboard/iCade Enable options"
This reverts commit 6ea11afe28.
2015-11-13 01:39:39 +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 6ea11afe28 (iOS) Add Small Keyboard/iCade Enable options 2015-11-12 06:28:05 +01:00
twinaphex 08a343fbd0 More iOS ifdefs 2015-11-12 06:15:28 +01:00
twinaphex 9e0a86e446 Start ifdeffing some of the icade/small keyboard code for iOS 2015-11-12 06:13:39 +01:00
twinaphex 1da727cd54 convert keyboard_event_win32 to C++ 2015-11-11 20:23:19 +01:00
twinaphex 1b7576aa64 Kill off IS_JOYCONFIG 2015-11-11 20:15:27 +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 e2ced6bd6a Don't need this additional code anymore 2015-11-07 20:47:29 +01:00
twinaphex 9bb87f276c Use just one label descriptor setting 2015-11-07 16:11:30 +01:00
Twinaphex 9a4adece0f Merge pull request #2315 from gizmo98/analog-dpad-sanity-check
input: add sanity check for analog dpad mode
2015-10-30 08:02:50 +01:00
radius 210ec0c23b add sanity check 2015-10-30 01:28:01 -05:00
Stefan a4faa857c0 input: add sanity check for analog dpad mode
Don't remap dpad joyaxis if analog joyaxis values are not valid. Joyaxis values are not valid if up and down or left and right are equal.

-Fix for https://github.com/libretro/RetroArch/issues/1780. If no analog left or right is configured (retroarch.cfg, autoconf) default analog joyaxis values are "-1".
-Make this wish https://github.com/libretro/RetroArch/issues/609 obsolete.
2015-10-30 07:25:43 +01:00
twinaphex eb33e83eff Some more non-HAVE_MENU buildfixes 2015-10-28 08:02:39 +01:00
twinaphex df01279cf3 Add non-HAVE_MENU ifdefs 2015-10-28 00:55:11 +01:00
twinaphex db5d8d248b Create new char_list_new_special 2015-10-26 19:41:20 +01:00
twinaphex b9febe2eed Add void pointer to string_list_special_new 2015-10-26 19:16:20 +01:00
twinaphex dc01514db1 Finished with code de-duplication 2015-10-26 18:41:13 +01:00
twinaphex f6ed72b21c More code deduplication 2015-10-26 18:33:51 +01:00
twinaphex 8b978bc674 More code de-duplication 2015-10-26 09:06:11 +01:00
twinaphex 0116ea5ba5 More code deduplication 2015-10-26 08:59:23 +01:00
twinaphex 02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +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 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 7ea16f622e (XMB) Create custom Main Menu list 2015-10-22 04:46:05 +02:00
Twinaphex 6141f00f70 (OSX) Some C89_BUILD fixes 2015-10-12 21:02:07 +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 9bd302b4ec (iohidmanager) Buildfix 2015-10-02 18:24:33 +02:00
aliaspider a55bbfc04a (CTR/3DS) input: fix analog joypad polling. 2015-10-01 23:56:22 +01:00
twinaphex 87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex e986b9e42a Static code analysis cleanups 2015-09-29 17:35:28 +02:00
Twinaphex 1974a3051d Merge pull request #2185 from aliaspider/master
(CTR/3DS) implement right stick analogue polling.
2015-09-29 02:38:14 +02:00
aliaspider 4a4dd8e625 (CTR/3DS) implement right stick analogue polling. 2015-09-28 23:57:05 +01:00
twinaphex 02a5d738fe Static code analysis cleanups 2015-09-28 23:00:22 +02:00
twinaphex 790bb0d0d6 Minor code cleanups based on static code analysis 2015-09-28 22:07:40 +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 d482dba2eb More static code analysis fixes 2015-09-28 16:57:22 +02:00
Twinaphex b1f6c88626 Merge pull request #2177 from aliaspider/master
(CTR/3DS) update
2015-09-28 16:21:57 +02:00
twinaphex a79b571d7b Static code analysis fixes 2015-09-28 16:20:26 +02:00
aliaspider ca000f64db (CTR/3DS) add support for new 3ds extra buttons/right stick, not tested.
no analogue support for the right stick.
2015-09-28 14:53:38 +01: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 8a6333ddc1 Move defines around 2015-09-24 21:23:16 +02:00
twinaphex 61a40be54d Remove USB_Initialize/USB_Deinitialize from wiiusb_hid.c 2015-09-24 00:09:59 +02:00
twinaphex 5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +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
twinaphex 54ad123b06 Simplify apple_gamecontroller_available 2015-09-16 02:50:22 +02:00
twinaphex 8ca8b43545 Take out retro_endianness.h include out of retro_miscellaneous.h 2015-09-14 03:34:05 +02:00
aliaspider 3b85e0dd5a (3DS) fix build to work with the latest ctrulib. 2015-09-07 18:31:30 +01:00
Alcaro fcbaca9b66 Fix a dozen CXX_BUILD errors under Windows. 2015-09-06 15:29:48 +02:00
twinaphex 73d599dc83 Should compile now with MISSING_DECLS = 1 2015-09-06 15:13:12 +02:00
twinaphex 875023468a Some more MISSING_DECLS buildfixes 2015-09-06 14:59:20 +02:00
twinaphex 9d6146dc7a Some more MISSING_DECLS fixes 2015-09-06 14:55:42 +02:00
Alcaro 9554597160 Add missing header includes, fixes CXX_BUILD. 2015-09-06 14:46:25 +02:00
twinaphex 0b098b9301 input_overlay.h - cleanup 2015-09-06 03:25:57 +02:00
twinaphex e654c5cb65 Header cleanups 2015-09-05 20:53:56 +02:00
twinaphex 38d099654e Cleanups 2015-09-05 20:49:57 +02:00
twinaphex 4d8b125c4f Cleanups 2015-09-05 20:40:11 +02:00
twinaphex e182f32d8c Header cleanups 2015-09-05 20:03:27 +02:00
twinaphex 43632b95ff More warning cleanups 2015-09-05 14:34:33 +02:00
twinaphex c4316b791c Avoid some warnings - array subscript has type char 2015-09-05 14:31:29 +02:00
twinaphex 3e977034a7 (Win32) More buildfixes 2015-09-05 14:10:16 +02:00
twinaphex 137e397028 Include wiiusb_hid only for HW_RVL 2015-09-05 01:21:39 +02:00
twinaphex ded8920a65 Cleanups 2015-09-04 21:13:12 +02:00
twinaphex bc6692e567 (wiiusb_hid.c) Remove goto error 2015-09-01 18:53:35 +02:00
twinaphex d5d498df5f (wiiusb_hid.c) Remove problematic line 2015-09-01 18:44:25 +02:00
twinaphex 15ba019ea1 Don't make asserts dependent on retro_log.h 2015-09-01 11:59:27 +02:00
twinaphex 948286e8e0 Fix warnings 2015-09-01 01:54:44 +02:00
Sergi Granell 96146e5313 (Vita) Update vita2d driver
(Vita/PSP) Name some stuff to vita
2015-08-31 15:26:37 +02:00
CautiousAlbino 173dcd3e4c Retry implementation of include_compressed to dir_list_new.
Problem was that if ext_list wasn't used, an empty list would be
created.
2015-08-30 20:19:41 +02:00
Twinaphex aa382a5c7c Revert "Add include_compressed param to dir_list_new." 2015-08-30 18:36:25 +02:00
CautiousAlbino c4691b2668 Add include_compressed param to dir_list_new.
Do not try to load in compressed archives unless we expect them.
Fixes hang in input autodetect where it tried to parse a zip file as an
archive.
2015-08-30 16:57:34 +02:00
twinaphex cd781ff4b5 Cleanups 2015-08-30 15:15:39 +02:00
twinaphex 202ffaee3b (wiiusb_hid.c) Don't call remove_adapter from remove_notify 2015-08-30 12:44:29 +02:00
twinaphex f95049e99c Add wiiusb_hid driver courtesy of @xerpi 2015-08-30 09:48:38 +02:00
twinaphex 24a94490ab Remove some header includes 2015-08-30 09:36:50 +02:00
twinaphex 195aba50b2 Try to avoid some symbol conflicts 2015-08-29 14:20:39 +02:00
radius 4f23188309 [input autoconf] improve logging 2015-08-27 21:35:05 -05:00
twinaphex fc25e9310f (Emscripten) remove unused uninited 2015-08-20 00:59:25 +02:00
twinaphex 9fd17a196f Buildfixes 2015-08-20 00:49:44 +02:00
twinaphex 16da8cfe2d (Emscripten) rwebinput_input.c - buildfixes 2015-08-20 00:37:16 +02:00
Radius 638db98e7d fix the back as menu toggle option, autoconf was returning false even when a controller was succesfully configured... 2015-08-13 03:14:53 +01:00
Radius cc3b1fd49f minor fixes to the workaround 2015-08-13 02:06:15 +01:00
Radius f6e25655c9 reimplement the shield controller workarounds 2015-08-13 01:13:24 +01:00
Radius 57419bea8c remove the generic I/O hack, it's not working reliably 2015-08-12 20:17:19 +01:00
Alcaro ee2ad0c4bd These aren't executable. 2015-08-12 01:31:03 +02:00
radius 828734e007 don't try to autoconfigure GPIO devices 2015-08-11 17:13:25 -05:00
twinaphex ff3e791d72 (Vita) Compile in input and joypad drivers 2015-08-10 23:19:07 +02:00
twinaphex 77aa7535c9 MOve all 'define' headers to central place ' defines' 2015-08-10 23:11:40 +02:00
twinaphex 08260878ea Start adding some Vita ifdefs 2015-08-10 23:04:09 +02:00
radius 12dcc5ae0a fix typo 2015-08-09 11:51:18 -05:00
radius 55e5dc83dc print an OSD message when no profiles found 2015-08-09 11:47:42 -05:00
radius 1818633914 log vid/pid on android 2015-08-09 11:46:40 -05:00
radius d52ab85b60 remove comment 2015-08-07 13:52:05 -05:00
radius a5c70560a3 remove the shield portable hack, it's not needed anymore 2015-08-07 13:51:19 -05:00
radius c8671139e8 fix 2015-08-07 02:17:25 -05:00
radius bae6dd7c79 better all around hack for GPIO devices 2015-08-07 01:59:50 -05:00
radius 1edd7af424 better all around hack for GPIO devices 2015-08-07 01:53:35 -05:00
radius 786424b064 Shield Console hack 2015-08-07 01:50:02 -05:00
twinaphex a1a15164b8 Get rid of input_overlay_get_ptr 2015-08-06 05:14:12 +02:00
twinaphex b4c5f98245 Cleanups 2015-08-05 12:59:33 +02:00
twinaphex ccac72f1e7 Refactor is_paused 2015-08-05 12:58:25 +02:00
twinaphex 74ee9b05f3 Create rarch_main_set_idle - make 'idle' variable self-contained 2015-08-05 12:40:47 +02:00
twinaphex 30a39d6d88 Get rid of warnings 2015-08-03 20:17:03 +02:00
twinaphex 3d36cb02ac No more separate runloop_t 2015-08-03 20:15:46 +02:00
Twinaphex d22bec3b3b Merge pull request #2022 from fr500/master
Allow binding remotes and P1 on the same port
2015-08-01 08:29:28 +02:00
radius 916190e683 cleaner approach to reduce OSD spam 2015-08-01 00:07:28 -05:00
radius 801ad5c4ff reduce OSD spam 2015-07-31 23:49:38 -05:00
radius 6fbfc27a1f reduce OSD spam 2015-07-31 23:40:30 -05:00
radius 028b28bf6b remove bogus messages that I shouldn't have commited 2015-07-31 23:19:57 -05:00
radius 65081a0f9d reduce OSD spam 2015-07-31 23:09:25 -05:00
radius 4097f97131 add hack for remote type devices 2015-07-31 22:37:22 -05:00
twinaphex 1489839384 (OSX) Add HAVE_COCOA and HAVE_COCOATOUCH ifdefs to iohidmanager_hid.c 2015-08-01 05:19:44 +02:00
Jean-André Santoni c6481b1930 Fix autoconfig saving for udev 2015-07-30 00:25:09 +02:00
slotek 7431529e89 Restore generic Mac OS X joypad functionality 2015-07-29 10:12:31 -06:00
twinaphex 4787c463b6 Backport this - 58748da89d 2015-07-27 00:08:25 +02:00
fr500 1af5943ca2 fix double inputs with akeycode_back when gamepads are mapped and pointer is enabled 2015-07-25 02:39:17 -04:00
fr500 6dc06885fb no need to name the device like the Shield controller, this will reduce OSD spam when hitting back 2015-07-25 02:04:00 -04:00
fr500 61c1a164fa Revert "improve the shield hack and add a generic function to check if a gamepad name is present, implement archos gamepad hack"
This reverts commit 1dc285a0d6.
2015-07-25 01:27:56 -04:00
Toad King 45e9055a63 don't uninitialize usb during libsicksaxis shutdown, fixes USB devices crashing on load 2015-07-23 19:06:21 -05:00
fr500 1dc285a0d6 improve the shield hack and add a generic function to check if a gamepad name is present, implement archos gamepad hack 2015-07-23 00:38:59 -04:00
fr500 8e7cccb92d fix autoconfig, it was matching the last profile when no match was found 2015-07-23 00:38:31 -04:00
radius 766b6b811e [android] expose vid/pid to the frontend so the value can be saved to autoconf files 2015-07-22 00:22:57 -05:00