39 Commits

Author SHA1 Message Date
Pieter Hulshoff
50633e639f Removed extra call for menu key reading from controls.conf. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
9053c6a861 Make menu key optional. 2018-04-02 11:57:35 +02:00
Pieter Hulshoff
da45a04ae8 Fixed certain menu related graphics loading issues.
Partly implemented menu structure; getting bugs fixed took priority.
2018-04-01 21:42:31 +02:00
Pieter Hulshoff
aedd7e67fa - Added support for monitor aspect ratio selection in the layout.xml:
e.g. layout 4x3.xml, layout 16x9.xml, etc.
- Added controls configuration at startup when controls.conf is missing.
2018-02-11 15:00:07 +01:00
Pieter Hulshoff
538eeec696 Updated Windows SDL to 2.0.5 to support hot-pluggable controllers. 2017-07-14 14:12:15 +02:00
Pieter Hulshoff
3486226798 Added hot-pluggability for controllers.
Fixed loss of controller after a game has been run when unloadSDL = true.
2017-07-14 13:09:16 +02:00
Pieter Hulshoff
52b5a2fc46 Added support for , and . as input keys. 2017-04-23 08:47:54 +02:00
Levi Pearson
7b654f301e Trim whitespace around, but not inside, key names in control binding.
An existing static method in the Configuration object to do this was
made public.

Lines like this in controls.conf now work correctly:

Random = R, Left Shift , joy0Button5
2017-02-05 12:49:24 -07:00
Pieter Hulshoff
6563ae336e Allows spaces in the controls.conf; otherwise keys like Left Shift will not
work.
2017-02-04 17:31:27 +01:00
Levi Pearson
6e06a9ac52 Add cleanup of input handlers when shutting down; Remove C++11ism. 2017-01-25 22:58:45 -07:00
catelite
60d474d87e Fixed user input iterate over key handlers loop length 2017-01-22 17:42:04 -08:00
catelite
7564e317af Updated controls.conf to allow multiple keys/buttons for each input 2017-01-22 17:20:06 -08:00
Pieter Hulshoff
0918d9fb96 Added playlist support via the following keys:
favPlaylist: switch between all games and favorites playlist
nextPlaylist: switch to the next playlist (that contains games)
prevPlaylist: switch to the previous playlist (that contains games)
The playlists should be placed as <playlist name>.txt in the
collections/<collection name>/playlists directory.
2017-01-07 13:57:35 +01:00
Pieter Hulshoff
04bf1a2644 Set currentKeyState_ to false when resetting the key states. 2017-01-07 09:42:32 +01:00
Pieter Hulshoff
961a3a838d RetroFE crashed on exit when a controller was connected. This is caused by
the call to SDL_JoystickClose. It is unclear why this happens, so for now
this code is disabled.
2017-01-06 14:53:41 +01:00
Pieter Hulshoff
1ab7d129d0 Dead zone of analogue control has been made programmable by KMetalMind.
The parameter is in %, and is defined by deadZone in controls.conf, with a default value of 3 (current RetroFE behavior).
2016-05-28 18:47:27 +02:00
emb
2d188fd2b2 Support for checking for new keypresses. Fix playlist updating bug. 2015-10-27 22:42:15 -05:00
Don Honerbrink
0ff46605eb Adding button to add to playlists (does not yet save favorites.txt yet) 2015-08-07 11:27:12 -05:00
Don Honerbrink
24d4b37cf7 Adding button to add to playlists (does not yet save favorites.txt yet) 2015-08-07 11:21:04 -05:00
Don Honerbrink
bf1286653a Add key to randomly highlight a game 2015-08-06 16:19:13 -05:00
Don Honerbrink
a1821475a9 Merge with playlists 2015-08-06 13:26:52 -05:00
Don Honerbrink
8be7939803 Fixing bad merge for user input joystick handling. 2015-08-03 10:14:04 -05:00
Don Honerbrink
1f18d41509 Multiple joystick support. Createcollections argument creates menu.txt instead of menu.xml 2015-08-03 09:35:14 -05:00
Don Honerbrink
7430b41938 Fix for supporting controller hat input 2015-07-29 11:46:59 -05:00
Don Honerbrink
8bd246818c playlist support - crashes 2015-07-28 16:37:45 -05:00
emb
f62c4c5e05 Fixed crash on launch close. Fixed launch and rom search paths for merged collections .Removed verbose debug statement. 2015-07-27 21:49:08 -05:00
emb
1f0b2c70fa Joysticks and buttons now work. Fixed alphetical scrolling bug when list was empty. 2015-07-27 12:50:31 -05:00
Don Honerbrink
fa439c831b Added support for multiple sticks and hats on a gamepad 2015-07-24 17:01:01 -05:00
Don Honerbrink
b9850ce1a8 Support for POV, hat, and buttons on joysticks. Support for the mouse button. 2015-07-24 16:40:51 -05:00
Don Honerbrink
dd07817ede Refactoring UserInput to accomidate future changes (i.e. joystick support) 2015-07-24 15:21:33 -05:00
Don Honerbrink
bcf35a954d Changed naming conventions for rest of files 2015-06-25 11:27:52 -05:00
Don Honerbrink
846e1228dd Fixed required/optional controls 2015-05-29 14:00:34 +00:00
Don Honerbrink
cacbf1265e Fix issue where letterUp and letterDown are not specified in controls.conf. 2015-05-29 08:37:14 -05:00
emb
24db185788 Support for alphabetical scrolling 2015-05-29 06:15:23 -05:00
Don Honerbrink
aa797abc61 Fixed keyboard (win/linux) and input focus (linux) bugs when returning from launching. 2015-03-20 23:38:34 -05:00
emb
fa5f425743 Made changes after testing. Support option to use up/down if left/right is not configured (and vice versa). 2015-03-03 12:31:39 -06:00
Don Honerbrink
79b4a7e3de Adding (untested) 2 way menu axis support (using the scrollOrientation parameter) 2015-03-03 11:56:38 -06:00
Don Honerbrink
16b3a7e7d9 Updating all files with licensing information. 2015-01-30 16:38:04 -06:00
emb
1458f13d9a Moved RetroFE to its own subdirectory. 2015-01-04 11:48:21 -06:00