Commit Graph

701 Commits

Author SHA1 Message Date
Themaister
dfdcfac588 Add concept of meta "level" for hotkeys.
Used by retroarch-joyconfig to make misc key config easier.
2013-04-29 21:11:29 +02:00
Themaister
a076b14daa Clean up some ifdefs. 2013-04-27 00:14:01 +02:00
Themaister
3417097484 Fix Win32 build. 2013-04-26 15:10:52 +02:00
Themaister
40d8a42886 De-autoconfig lost drivers on reinit. 2013-04-26 15:08:18 +02:00
Themaister
f06f6e544e Don't spam OSD messages for autoconfigure. 2013-04-26 15:03:09 +02:00
Themaister
cca7fce89c Add joypad autoconfig support. 2013-04-26 14:48:48 +02:00
Themaister
0ac849d825 Let retroarch-joyconfig write autoconfigs. 2013-04-26 13:25:40 +02:00
Themaister
42a9e46cb2 Input config refactor.
Move LUTs to input_common.c. Make LUTs public.
2013-04-26 11:44:54 +02:00
Themaister
0653a8b5c2 Push to msg_queue when device is hotplugged. 2013-04-26 00:43:14 +02:00
Themaister
66a1c01419 Make device name show up in RGUI. 2013-04-26 00:22:12 +02:00
Themaister
9a96e6a8f3 Rewrite linuxraw-joypad. Add hotplug.
Adds plug-n-play to linuxraw-joypad.
Can plug devices in and out in flight.

linuxraw_joypad is now default joypad API on Linux,
making SDL obsolete.
2013-04-26 00:03:22 +02:00
Themaister
f1e3cb3b58 Fix compiler warning. 2013-04-20 09:01:38 +02:00
twinaphex
3a131cf5b8 (PS3) Compile in HAVE_OVERLAY 2013-04-10 04:39:27 +02:00
Themaister
2dc4af52dc Use FOREGROUND for mouse. 2013-04-04 22:56:52 +02:00
Themaister
a910ada8a2 Add mouse grab to dinput. 2013-04-04 22:35:05 +02:00
Themaister
d59d72fe49 Don't warp pointer unless needed. 2013-03-29 19:30:09 +01:00
Themaister
7f25a608f4 Only grab mouse when there is input focus. 2013-03-29 19:04:26 +01:00
Themaister
292bc36b43 Basic mouse grabbing for X11. 2013-03-29 18:55:54 +01:00
Themaister
2be53ac0f9 Add MENU_TOGGLE bind config. 2013-03-16 12:21:16 +01:00
Themaister
d2665f8807 Fix dinput cb struct. 2013-03-15 10:43:42 +01:00
twinaphex
ede829c354 Refactor set_default_keybinds callback into set_keybinds - remove
set_analog_dpad_mapping and have it go through set_keybinds - expand
functionality of set_keybinds
2013-03-14 02:24:57 +01:00
twinaphex
4fa8d0f3c6 (Android) Rewritten input_autodetect- now implements set_default_keybinds 2013-03-13 23:17:33 +01:00
twinaphex
d7130d58f6 Move set_default_keybinds upstream (no longer ifdeffed RARCH_CONSOLE) 2013-03-13 16:33:39 +01:00
twinaphex
ece717f2cc Rename set_default_keybind_lut to set_default_keybinds 2013-03-13 16:30:01 +01:00
twinaphex
545911d4da (Input) Remove post_init and make it part of input_init 2013-03-13 00:34:46 +01:00
Themaister
272ef70895 Merge branch 'master' into cd-swap 2013-03-09 09:27:14 +01:00
twinaphex
6899434609 (Android) Add back button behavior option 2013-03-07 15:21:17 +01:00
Themaister
5c53c053e2 Plain overlay_next should always go to next. 2013-02-24 12:52:48 +01:00
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