1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-07 19:21:19 +00:00

Add prototypical SDL support.

Build with cmake. This will create a new backend (ldesdl).
- Resolution can only be set by editing the variables in sdl.c.
- Key repeat does not work.
- Still problems with keysyms that implicitly contain modifiers.
- The entire screen is bitblted onto the SDL display every frame.

Support keyboard, and work on mouse.

Kind of working...

Fix display resolution problems.
This commit is contained in:
Peter
2021-10-19 14:11:45 +02:00
parent 75c668f1cd
commit f58abe36ee
8 changed files with 422 additions and 8 deletions

View File

@@ -1118,8 +1118,12 @@ check_interrupt:
* If the system is configured with SIGIO handling we have a hint
* that allows us to cheaply skip if there's nothing to do
*/
#ifdef XWINDOW
process_Xevents(currentdsp);
#endif
#ifdef SDL
process_SDLevents();
#endif
if (IO_Signalled) {
IO_Signalled = FALSE;
process_io_events();