Ignore:
Timestamp:
Mar 8, 2006, 10:28:41 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Split event.c into the appropriate driver_*.c files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_conio.c

    r543 r548  
    121121}
    122122
     123static unsigned int conio_get_event(caca_t *kk)
     124{
     125    unsigned int event;
     126
     127    if(!_conio_kbhit())
     128        return CACA_EVENT_NONE;
     129
     130    event = getch();
     131    _push_event(kk, CACA_EVENT_KEY_RELEASE | event);
     132    return CACA_EVENT_KEY_PRESS | event;
     133}
     134
    123135/*
    124136 * Driver initialisation
     
    136148    kk->driver.display = conio_display;
    137149    kk->driver.handle_resize = conio_handle_resize;
     150    kk->driver.get_event = conio_get_event;
    138151}
    139152
Note: See TracChangeset for help on using the changeset viewer.