Ignore:
Timestamp:
Nov 19, 2003, 6:32:10 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/io.c: + Renamed sdl_get_key() into sdl_get_event(). + Handle mouse clicks.
  • src/caca.c: + Activate the terminal's mouse handling if supported.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.h

    r198 r199  
    6464
    6565/*
     66 * Events
     67 */
     68enum caca_event
     69{
     70    CACA_EVENT_NONE =        0x00000000,
     71    CACA_EVENT_KEY_PRESS =   0x01000000,
     72    CACA_EVENT_KEY_RELEASE = 0x02000000,
     73    CACA_EVENT_MOUSE_CLICK = 0x04000000
     74};
     75
     76/*
    6677 * Keys
    6778 */
     
    108119void caca_end(void);
    109120
    110 int caca_get_key(void);
     121int caca_get_event(void);
    111122
    112123void caca_set_color(enum caca_color);
Note: See TracChangeset for help on using the changeset viewer.