Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | sdl1.c: Random garbage. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | ams/sdl1 |
Files: | files | file ages | folders |
SHA3-256: |
73352d43843db9e83c729ea89583d2e5 |
User & Date: | ams 2024-05-31 05:08:32 |
Context
2024-05-31
| ||
07:39 | Merge changes from trunk. check-in: 9721679bb8 user: ams tags: ams/sdl1 | |
05:08 | sdl1.c: Random garbage. check-in: 73352d4384 user: ams tags: ams/sdl1 | |
2024-05-24
| ||
13:24 | Merge changes from trunk. check-in: fa70a98aa8 user: ams tags: ams/sdl1 | |
Changes
Changes to sdl1.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /* sdl1.c --- SDL1 routines used by the TV and KBD interfaces */ #include <SDL.h> #include "tv.h" #include "kbd.h" #include "mouse.h" #include "utrace.h" SDL_Surface *screen; struct DisplayState { unsigned char *data; int linesize; int depth; | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | /* sdl1.c --- SDL1 routines used by the TV and KBD interfaces */ #include <SDL.h> #include "tv.h" #include "kbd.h" #include "mouse.h" #include "utrace.h" #include "idle.h" SDL_Surface *screen; struct DisplayState { unsigned char *data; int linesize; int depth; |
︙ | ︙ | |||
68 69 70 71 72 73 74 | { SDL_Quit(); } static void process_key(SDL_KeyboardEvent *e, int keydown) { | > > > > > > > > > > > > > > > > > > | | | | | > > > > | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | { SDL_Quit(); } static void process_key(SDL_KeyboardEvent *e, int keydown) { //typedef struct{ // Uint8 type; // Uint8 state; // SDL_keysym keysym; // typedef struct{ // Uint8 scancode; // SDLKey sym; // SDLMod mod; // Uint16 unicode; // } SDL_keysym; //} SDL_KeyboardEvent; printf("e->keysym->scancode = %d\n", e->keysym.scancode); if (SDLK_1 == e->keysym.sym) // sdl1_keysym_to_keycode(keysym) // return e->keysym.sym? printf("bingo\n"); // idle_keyboard_activity(); if (kbd_type == 0) ; // knight_process_key(e, keydown); else ; // cadet_process_key(e, keydown); XLookupString(&e->xkey, (char *)buf, sizeof(buf), &keysym, &status); // bi = x11_bucky(keycode); // cadet_process_key(keysym, bi, keydown, x11_kbd_map, x11_modifier_map); // } void sdl1_event(void) { SDL_Event ev1, *ev = &ev1; |
︙ | ︙ |