115 Commits

Author SHA1 Message Date
Henrik Rydgard
a8a7adc85f When using controller autoconf on PC, throw in a couple of useful keyboard mappings too.
See #7399
2015-02-04 11:52:13 +01:00
Unknown W. Brackets
116ddaaaf4 Fix a bad nullcheck. 2015-01-17 19:49:47 -08:00
Gabriel
df3b407427 Detect azerty and qwertz
Addresses #2462.
2014-12-19 00:07:20 +01:00
Andrey Bondrov
35d0149162 Less code for bool variable inversion 2014-12-14 00:29:58 +10:00
Andrey Bondrov
89c6f76456 Less confusing function name 2014-12-13 12:20:31 +10:00
Andrey Bondrov
c41e4ef905 Don't make Axis <-> D-pad swap persistent 2014-12-13 12:13:42 +10:00
Andrey Bondrov
38268a3d37 Use constants instead of hardcoded numbers for keys swap 2014-12-13 10:36:13 +10:00
Andrey Bondrov
5201f03720 Add a hotkey to swap D-pad and left analog stick keys 2014-11-07 22:40:53 +10:00
Henrik Rydgard
808f05da89 (Partially) slip thin3d underneath DrawBuffer. 2014-08-22 20:54:53 +02:00
The Dax
784f311d76 Make it available for everybody. 2014-08-17 14:36:35 -04:00
Henrik Rydgard
120e4329ba Revert the analog key names (lost mappings) 2014-06-10 00:24:14 +02:00
Henrik Rydgard
c39c36ddea Improve layout of control mapping screen 2014-06-09 22:26:23 +02:00
mildlysec
c3dfb64839 Added ability to press analog keys lightly using shift button 2014-06-07 22:21:54 +02:00
pal1000
8d9ecbb6b3 Do not map these keys. They are hard-coded. It just a waste. They are leftover from before finding the proper solution. 2014-06-06 18:19:10 +03:00
pal1000
a41737ebe7 Save state, load state and next save slot shortcuts are no longer hardcoded. 2014-06-06 11:52:33 +03:00
Henrik Rydgard
3023f7d06b Android: Switch dpad default to use HAT X/Y +/- instead of "dpad", as documented.
Add a simple "autoconfigure" facility for input devices, that lets the user choose
if several are connected.

Can be expanded in the future to provide custom default mapppings for various devices as long as we manage to identify them.

Ideally, key mappings should be unique per device but they aren't yet.
2014-05-19 23:31:11 +02:00
Ced2911
418d2ac8ce [xbox] 360 support for common 2014-03-02 12:15:10 -08:00
Sacha
6b8ab2e044 Fix keyboard on Blackberry. 2014-02-19 22:33:28 +10:00
Unknown W. Brackets
d2108a962e Switch from USING_GLES2 to MOBILE_DEVICE.
Still using USING_GLES2 for, well, GLES2.  But for things that are really
about mobile, we need a new define.  Devices are coming that don't use
GLES2.
2014-02-08 16:37:58 -08:00
Unknown W. Brackets
08f812518f Switch game browser tabs using L/R buttons.
Even with keyboard / custom controller mapping.
2014-01-25 12:01:48 -08:00
ufdada
e3ae387e39 Textstring for additional keys
see: https://github.com/hrydgard/native/pull/188
2014-01-13 16:42:54 +01:00
zack-vii
26fbb4c32c "Next Slot" control mapping
-added "Next Slot" to control mapping menu
-added VIRTKEY_NEXT_SLOT -> incremented VIRTKEY_TOGGLE_FULLSCREEN
-added SaveState::NextSlot(); as replacement for code in
WndMainWindow
-added entry in EmuScreen using SaveState::NextSlot();
2014-01-07 15:56:04 +01:00
Henrik Rydgård
f570601f84 Preliminatory support for a fullscreen toggle for SDL platforms.
Does not seem to work on Mac.
2014-01-03 15:16:23 +01:00
Henrik Rydgård
886607d529 Make Save/Load state mappable to controls. Not mapped by default. 2013-12-06 15:46:56 +01:00
Henrik Rydgård
cd2adf80a4 Add keybinding to rewind (backspace by default), if rewind states are enabled. Disable rewind on mobile. 2013-12-05 16:25:17 +01:00
Henrik Rydgard
2a5c4ca420 Some math approximation research. Found a good approximate arcsin (to implement vasin in the future). 2013-11-30 12:46:23 +01:00
Henrik Rydgård
0d05a8f4a9 Merge pull request #4392 from hrydgard/multi-press
If an input (axis or key) is mapped to multiple targets, trigger them all.
2013-11-29 05:26:55 -08:00
Sacha
8597893e14 Fix Blackberry QWERTY default values. 2013-11-13 04:22:21 +10:00
Henrik Rydgård
5b58497b0d Flip the default Y-axis stick mapping for Ouya 2013-11-01 12:03:38 +01:00
Henrik Rydgård
bf7f582c3c If an input (axis or key) is mapped to multiple targets, trigger them
all, not just the first one.
2013-10-31 16:50:27 +01:00
Henrik Rydgård
43240515de Fix weird axis mapping issue on Ouya 2013-10-31 11:06:54 +01:00
Henrik Rydgård
cdee118c60 Make the default control mapping on Ouya a bit more workable:
Start/Select are now mapped to the analog triggers instead of
non-existing buttons.
2013-10-31 10:51:03 +01:00
Henrik Rydgard
9df2025c4f Azerty L/R fix 2013-10-28 11:25:18 +01:00
Henrik Rydgard
6c5a2ea91a Windows: Try to autodetect and adjust for QWERTZ and AZERTY keyboard layouts.
Might not have all the layout codes necessary yet.
2013-10-24 12:45:44 +02:00
Sacha
d49b4fad9a Miscellaneous changes for Blackberry. 2013-10-12 17:19:02 +10:00
Unknown W. Brackets
c3839a53e5 Fix some minor warnings. 2013-09-07 22:40:08 -07:00
Henrik Rydgard
d21db0f852 Fix Xperia Play detection, hide touch controls on Ouya 2013-09-07 11:06:28 +02:00
Henrik Rydgard
c845da2887 Switch System_GetName to System_GetProperty 2013-09-04 11:31:40 +02:00
papel
d22e555e4f Fix volume and name of Latin American languages. 2013-08-29 13:25:29 -03:00
Henrik Rydgard
cae5aef231 Detect Ouya correctly, for keymap assignment 2013-08-27 11:27:26 +02:00
The Dax
13f6c26b6b Fix a couple spacing things. 2013-08-25 16:55:00 -04:00
The Dax
59f878a3c4 Add space as a confirm key, and use a loop for hard-coded confirm keys, too. 2013-08-22 13:06:12 -04:00
The Dax
4beef2b877 Fix dumb copy and paste error. 2013-08-22 12:53:33 -04:00
The Dax
0c249f0084 Remove RMB as a default cancel key. We'll let the user bind it to cancel manually. 2013-08-22 12:38:04 -04:00
The Dax
57ab8aa611 Only hard-code keys if they're not bound. 2013-08-22 08:44:08 -04:00
The Dax
968150cc77 Rewrite the hard-coded removal of accept/cancel keys. It's much cleaner and simpler now. 2013-08-22 06:46:35 -04:00
Henrik Rydgard
6b48dda12f Fix a couple of keymap load/save/default bugs 2013-08-20 16:07:23 +02:00
The Dax
1fd2f1ab3d Do the default keymap for DirectInput, too. An oversight, I guess? 2013-08-20 03:34:30 -04:00
Henrik Rydgard
1559b4404a Fix some joystick mapping errors, a minor bug 2013-08-19 22:40:05 +02:00
Sacha
ba030da663 Enable controllers and change keymapping for Blackberry. 2013-08-19 00:03:02 +10:00