Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Minor cleanups. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | ams/sdl |
| Files: | files | file ages | folders |
| SHA3-256: |
8d25295997b048844ac06a9506c886c5 |
| User & Date: | ams 2024-06-12 11:55:17.399 |
Context
|
2024-06-17
| ||
| 08:44 | Move default keyboard map so that it is shared. check-in: 7acabec269 user: ams tags: ams/sdl | |
|
2024-06-12
| ||
| 11:55 | Minor cleanups. check-in: 8d25295997 user: ams tags: ams/sdl | |
| 11:53 | ucfg.c: Include SDL1 and SDL2 headers. check-in: 519b4720fe user: ams tags: ams/sdl | |
Changes
Changes to sdl2.c.
| ︙ | ︙ | |||
308 309 310 311 312 313 314 |
process_key(SDL_KeyboardEvent e, int keydown)
{
// KeySym keysym;
// SDLKey keycode;
int bi;
int keysym;
| | | 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
process_key(SDL_KeyboardEvent e, int keydown)
{
// KeySym keysym;
// SDLKey keycode;
int bi;
int keysym;
idle_keyboard_activity();
// keycode = SDL_KeysymToKeycode(e->keysym.sym);
//if (event->key.code == key) ...
// XLookupString(&e->xkey, (char *)buf, sizeof(buf), &keysym, &status);
|
| ︙ | ︙ | |||
360 361 362 363 364 365 366 |
sdl2_event(void)
{
SDL_Event ev;
send_accumulated_updates();
kbd_dequeue_key_event();
SDL_StartTextInput();
| < | 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
sdl2_event(void)
{
SDL_Event ev;
send_accumulated_updates();
kbd_dequeue_key_event();
SDL_StartTextInput();
while (SDL_PollEvent(&ev)) {
switch (ev.type) {
case SDL_WINDOWEVENT:
SDL_UpdateTexture(texture, NULL, tv_bitmap, tv_width * sizeof (Uint32));
// flush
SDL_RenderClear(renderer);
SDL_RenderCopy(renderer, texture, NULL, NULL);
|
| ︙ | ︙ |