Commit graph

20 commits

Author SHA1 Message Date
Gabriel Ravier
9be8b9a493 Backends: Added init/de-init messages for backends
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 02:26:51 +02:00
Gabriel Ravier
53e2b715d4 Backends/SDL2/Misc: !x -> x == NULL
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:19:35 +02:00
Gabriel Ravier
92d565692a Backends: Use "SDL" instead of "SDL2" to match documentation vocabulary
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:16:45 +02:00
Gabriel Ravier
7f7c3d8434 Backends: Started adding a bunch of error handling stuff (error checking only done in SDL2 for now)
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-10 22:32:29 +02:00
Clownacy
0582fa93d1 Add extra failure error messages 2020-04-09 12:54:28 +01:00
Clownacy
41d5c5b5c8 Make it so Backend_Init can fail 2020-04-07 17:46:02 +01:00
Clownacy
aa7f7814d5 Make SDL2's Backend_ShowMessageBox print to console
Just in case SDL_ShowMessageBox doesn't work (no GUI)
2020-04-07 17:20:39 +01:00
Clownacy
f2950b085b Fix potential NULL being passed to printf 2020-04-07 17:19:34 +01:00
Clownacy
f6377ae259 Fix SDL2 cursor 2020-04-07 13:53:45 +01:00
Clownacy
5395b00a95 Make some backend code safer 2020-04-06 20:05:15 +01:00
Clownacy
eaef25d5da Change how backend keyboard status stuff works 2020-04-05 13:26:08 +01:00
Clownacy
aef0f81f28 Offload keyboard tracker to the engine
Centralising it in the backend breaks the enhanced branch's rebinding
menu.
2020-04-05 04:31:11 +01:00
Clownacy
1ae63bea96 Move window ownership to the window backend 2020-04-04 20:51:07 +01:00
Clownacy
135035bb1a Change 'PlatformBackend' namespace to 'Backend' 2020-04-04 20:31:27 +01:00
Clownacy
8acdcface4 Update CMakeLists.txt 2020-04-04 19:56:57 +01:00
Clownacy
65325e2b34 Add hotplugging support to SDL2 backend 2020-04-04 19:50:52 +01:00
Clownacy
87e8a75df4 Rename GLFW3.h/SDL2.h 2020-04-04 19:18:46 +01:00
Clownacy
39ddfd9791 Abstract-away keyboard input
Now, instead of keyboard input being completely-handled in the
backend, it's merely abstracted, while still otherwise being handled
in the game itself. This will be useful for the enhanced branch's
key-rebinding menu.
2020-04-04 17:42:56 +01:00
Clownacy
6175867178 Fix build errors 2020-04-03 17:57:11 +01:00
Clownacy
40464a9fc0 Move-around Backend files
Hoping to introduce some degree of grouping
2020-04-03 14:42:11 +01:00
Renamed from src/Backends/Platform/SDL2.cpp (Browse further)