fewtarius
fcbda2d170
Merge remote-tracking branch 'upstream/master'
2023-12-26 17:23:07 +00:00
shantigilbert
6740398552
Fix compiling for GCC 10+
2023-11-29 12:26:39 -06:00
fewtarius
16d4c69d46
Merge changes from the textviewer package.
2023-09-07 15:37:58 +00:00
Nikolai Wuttke
8c2b945af5
Add some documentation
2022-08-10 10:50:52 +02:00
shantigilbert
f9f9d695b7
User Start as confirm (same as A) and Select as global quit
2022-02-26 11:07:33 -06:00
Nikolai Wuttke
2cd7fe0891
Implement script execution
2022-02-13 12:10:13 +01:00
Joshua L
787c72f8f1
Load gamecontrollerdb.txt before SDL init
2021-08-26 11:01:07 +10:00
Nikolai Wuttke
1d2a38635a
Fix quit via start button
2021-03-06 21:33:57 +01:00
Nikolai Wuttke
c42c8c161d
Implement optional text wrapping
2021-03-06 11:46:24 +01:00
Nikolai Wuttke
e881fce0f6
Refactor
2021-03-06 11:32:59 +01:00
Nikolai Wuttke
2cb6e920cf
Formatting
2021-02-21 13:05:03 +01:00
Nikolai Wuttke
935bc0bd87
Move some code into a new file
2021-02-21 12:57:07 +01:00
Nikolai Wuttke
0ed5b0ca44
Cleanup: Remove unnecessary controller enumeration
2021-02-21 12:31:46 +01:00
Nikolai Wuttke
605e37838c
Prevent creation of imgui.ini
...
Originally, I had assumed that `ImGuiWindowFlags_NoSavedSettings` would be
sufficient to prevent the creation of the ini file, but turns out that's
not the case.
So we disable ini writing completely instead.
2021-02-21 12:28:46 +01:00
Nikolai Wuttke
41e5e8d87f
Fix and improve error message for controller DB
...
Fixes bogus error message in case mappings were
loaded successfully, and adds more info in case
it fails.
2021-02-06 14:19:16 +01:00
Nikolai Wuttke
4da8667187
Implement support for multiple controllers, and hot-plugging
2021-02-05 13:27:05 +01:00
Nikolai Wuttke
b5e55bbc09
Properly enable horizontal scrolling
2021-02-05 11:51:28 +01:00
Nikolai Wuttke
c7cca65d4b
Explicitly query controller mappings env var instead of hardcoding
...
Normally, SDL is supposed to look at the SDL_GAMECONTROLLERCONFIG_FILE
env var during SDL_Init(). But this doesn't seem to happen on all systems,
so to make sure we have mappings, explicitly query the env var ourselfes.
This replaces the hardcoded path, making it easier to change the path
without having to recompile the text viewer.
2021-02-05 11:28:25 +01:00
Nikolai Wuttke
b0a174594f
Move controller mappings setup out of run(), and unify printing
2021-02-05 11:10:17 +01:00
shantigilbert
87ca192a81
Use mappings from gamecontrollerdb.txt
2021-02-02 19:55:58 -06:00
Nikolai Wuttke
5522985b7f
Handle most common escape sequences for non-file input
2021-01-30 14:05:04 +01:00
Nikolai Wuttke
07589b8246
Simplify exit code handling, and a few cleanups
2021-01-30 13:20:24 +01:00
Nikolai Wuttke
96c41d2079
Fix crash when specified file can't be opened
2021-01-30 13:04:52 +01:00
Nikolai Wuttke
f172cd51ca
Add option to specify text without a file
2021-01-30 10:52:16 +01:00
Nikolai Wuttke
36b5f4e4c0
Set initial focus on Yes button if shown
2021-01-29 18:13:02 +01:00