Commit graph

79 commits

Author SHA1 Message Date
Leon Styhre b4e08ba92b Renamed Platform to utils/PlatformUtil 2022-01-10 18:56:04 +01:00
Leon Styhre 2d149c5161 Moved all Platform functions to the utility namespace. 2022-01-10 18:43:17 +01:00
Leon Styhre 254b00a3d8 Large refactoring to improve thread safety and improve singleton pattern usage. 2022-01-04 21:21:26 +01:00
Leon Styhre 55316365d8 Fixed an issue where buggy controller drivers could crash the application. 2021-12-10 16:51:41 +01:00
Leon Styhre af52d9b0ac Changed most increment and decrement operators from postfix to prefix for es-core. 2021-11-17 17:48:49 +01:00
Leon Styhre 3669d2320c Added info popups when adding and removing input devices. 2021-10-07 18:33:13 +02:00
Leon Styhre db5fb48cf8 OCD commit to fix some spelling inconsistencies. 2021-09-21 22:53:08 +02:00
Leon Styhre 18949d375c Minor cosmetic code cleanup. 2021-08-11 12:09:58 +02:00
SophiaHadash 75bf7781e3 update from master 2021-07-16 10:10:55 +02:00
Leon Styhre 23fdc00044 Formatted the es-core source tree using clang-format. 2021-07-07 20:31:46 +02:00
SophiaHadash e24c92effe code style and comments style 2021-07-07 14:31:32 +02:00
SophiaHadash ba2ef814de code-words for options 2021-07-07 14:24:15 +02:00
SophiaHadash 17d28ea88b remove exit combo ESC, add combo Alt+Q 2021-07-07 14:13:46 +02:00
Leon Styhre 52e12da55a Fixed an issue where the joystick counter would not decrease when removing a controller. 2021-07-03 12:24:23 +02:00
Sophia Hadash 7a072674d3 Merge branch 'quit-button-config' into '517-make-the-application-quit-shortcut-configurable-e-g-f4-alt-f4-alt-q-command-q'
Added a menu option in 'other options' for setting the exit button combo.

See merge request leonstyhre/emulationstation-de!3
2021-07-01 15:55:08 +00:00
SophiaHadash 2ecb105c5c Added a menu option in 'other options' for setting the exit button combo.
Added 4 button combos including Apple and Windows key combos.
2021-07-01 17:46:03 +02:00
Leon Styhre 3185083ca5 Added separate controller deadzone values for the triggers and thumbsticks. 2021-07-01 17:39:08 +02:00
Leon Styhre e0e1cff787 Removed controllers are now logged to es_log.txt in the same manner as added controllers.
Also renamed two functions and changed a variable that had an incorrect and confusing name.
2021-06-26 22:54:30 +02:00
Leon Styhre b5eb945f40 Changed a log output line in InputManager. 2021-06-16 20:20:21 +02:00
Leon Styhre 57280c5da9 Changed es_input.cfg to es_input.xml 2021-06-16 19:20:53 +02:00
Leon Styhre ccb4c19d78 Changed input type 'select' to 'back' to align with the SDL naming conventions. 2021-05-23 20:31:15 +02:00
Leon Styhre ecf8e50500 Added a setting to only accept input from the first controller. 2021-05-23 11:45:45 +02:00
Leon Styhre 28ff713d87 (Windows) Fixed an MSVC compiler error and two warnings. 2021-05-22 22:31:03 +02:00
Leon Styhre 0bde8dc79d Migrated to the SDL2 GameController API. 2021-05-22 22:18:00 +02:00
Leon Styhre 12a7b18d05 Renamed controller input type 'analog' to 'thumbstick'. 2021-03-24 21:20:01 +01:00
Leon Styhre 1338e4467b Added support for controller analog sticks click. 2021-03-24 19:35:51 +01:00
Leon Styhre 08e6f1b0dd Fixed some minor memory leaks in UIModeController, InputManager and Font. 2021-03-19 18:34:10 +01:00
Leon Styhre adaec71f5b Some minor code cleanup. 2021-03-19 18:25:37 +01:00
Leon Styhre e2b3ca55be Two small changes to the application startup logging. 2021-01-07 00:14:45 +01:00
Leon Styhre a27c961987 Some changes to the startup logging.
Also removed some unnecessary audio code.
2020-12-23 17:56:21 +01:00
Leon Styhre 0b6dce687e Changed to C++ casts throughout the application. 2020-11-17 23:06:54 +01:00
Leon Styhre 0beb40d9c9 Fixed a tiny memory leak.
Also fixed a Clang static analyzer error for SystemData.
2020-10-17 14:32:08 +02:00
Leon Styhre 8db04c5fcb Added SPDX license identifiers to all source files. 2020-09-21 19:17:34 +02:00
Leon Styhre 1df4caa43b Fixed an issue where ES could crash when a controller was unplugged. 2020-08-24 18:59:04 +02:00
Leon Styhre 88a5962926 Changed '#ifdef' to '#if defined()' throughout the code. 2020-08-23 17:04:30 +02:00
Leon Styhre af5a48ed10 Removed unnecessary #ifdefs for the SDL2 include files. 2020-08-23 16:15:06 +02:00
Leon Styhre b0624f2bc9 Updates to make the application work correctly (more or less) on macOS. 2020-08-18 17:48:21 +02:00
Leon Styhre d9f00ec582 Fixed an issue where the keyboard was counted as a joystick. 2020-08-03 12:13:28 +02:00
Leon Styhre b5485b4ca9 Changed log levels from numbers to text. 2020-07-26 23:30:45 +02:00
Leon Styhre dc4870f543 Improved the trigger button handling and made it work (somehow) on Windows.
There are still some issues on Windows, especially with Dual Shock controllers, but a larger rewrite is required anyway of the input handling so it's not worthwhile trying to fix it at this time.
2020-07-24 18:24:04 +02:00
Leon Styhre 1b65eaac2e Improved input device configuration.
Default keyboard mappings are now applied if the user has not configured the keyboard.
2020-07-14 19:16:21 +02:00
Leon Styhre 31da561695 Complete UTF-16 (Unicode) support added for Windows.
ROM names with Unicode characters are supported, as well as running ES from a directory that has Unicode characters in its name.
2020-07-10 18:32:23 +02:00
Leon Styhre 76aa239855 Initial update to make the application build and run on Windows.
Much more work will be needed to get the Windows port working properly.
2020-07-03 20:23:51 +02:00
Leon Styhre eeae8033bd Use SDL2 include files instead of those for SDL version 1.
This resolves an irritating issue in the code editor where SDL2-specific functions could't be found. Not entirely sure about the SDL include file logic for other operating systems than Linux so the #ifdef directives may need to be updated further at a later date.
2020-06-26 18:03:55 +02:00
Leon Styhre 1f74723533 Another code cleanup and code documentation update. 2020-06-26 17:17:35 +02:00
Leon Styhre 0387d515fb Update to fully support Clang/LLVM.
Also a general cleanup of CMakeLists.txt and many small code changes to satisfy Clang that complained quite a lot and actually wouldn't compile the binary at all at first.
2020-06-25 19:52:38 +02:00
Leon Styhre fb4c5708b7 Made pugixml an external dependency and fixed the cmake/cpack installation and package creation.
As pugixml seems to be well supported nowadays and seems to ship with most distributions it's pretty pointless to keep bundling it with EmulationStation.
2020-06-24 17:38:41 +02:00
Leon Styhre 6b62065595 Large code cleanup and code documentation update.
The initial code cleanup of es-app is now complete as of this commit.
2020-06-23 20:07:00 +02:00
Leon Styhre 67aa6b3dbd Huge code cleanup and code documentation update.
Includes lots of conversions from tabs to spaces. Only cosmetic code changes in this commit.
2020-06-21 14:25:28 +02:00
Leon Styhre 49161df0e6 Renamed platform.cpp/platform.h to Platform.cpp/Platform.h
The naming convention for the rest of the application is to start the file names with a capital letter.
2020-06-21 12:26:21 +02:00