Changeset 657abdf in buchla-emu for emu/sdl.c


Ignore:
Timestamp:
08/20/2017 09:47:23 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
7ba68aa, c1c1ca5
Parents:
a9861f3
Message:

Serial FIFO. Mouse support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/sdl.c

    ra9861f3 r657abdf  
    106106                                ver("sdl ev down-arrow");
    107107                                rel_mod = true;
     108                                ser_mou_res();
    108109                                continue;
    109110                        }
     
    113114                                rel_mod = false;
    114115                                continue;
     116                        }
     117
     118                        if (rel_mod) {
     119                                if (ev.type == SDL_MOUSEMOTION) {
     120                                        ver("sdl ev mousemotion (%d, %d)", ev.motion.xrel, ev.motion.yrel);
     121                                        ser_mou_mov(&ev.motion);
     122                                        continue;
     123                                }
     124
     125                                if (ev.type == SDL_MOUSEBUTTONDOWN) {
     126                                        ver("sdl ev mousebuttondown %d", ev.button.button);
     127                                        ser_mou_dn(&ev.button);
     128                                        continue;
     129                                }
     130
     131                                if (ev.type == SDL_MOUSEBUTTONUP) {
     132                                        ver("sdl ev mousebuttonup %d", ev.button.button);
     133                                        ser_mou_up(&ev.button);
     134                                        continue;
     135                                }
    115136                        }
    116137
Note: See TracChangeset for help on using the changeset viewer.