Ignore:
Timestamp:
Jan 10, 2004, 8:29:12 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics: + Initialise the char buffers in the X11 driver.
  • src/io.c: + caca_get_event() and caca_wait_event() immediately return zero if

event_mask is zero.

+ Added support for the Home, End, PgUp? and PgDown? keys.
+ In the S-Lang driver, added a call to SLang_getkey() before the call to

SLkp_getkey(), otherwise a single Escape call will not be interpreted.

  • test/event.c: + The "quit" sequence now quits the program, instead of "q" alone. + Added a status bar below.
File:
1 edited

Legend:

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

    r322 r332  
    192192enum caca_key
    193193{
     194    CACA_KEY_UNKNOWN = 0, /**< Unknown key. */
     195
     196    /* The following keys have ASCII equivalents */
     197    CACA_KEY_BACKSPACE = 8, /**< The backspace key. */
     198    CACA_KEY_TAB = 9, /**< The tabulation key. */
     199    CACA_KEY_RETURN = 13, /**< The return key. */
     200    CACA_KEY_PAUSE = 19, /**< The pause key. */
     201    CACA_KEY_ESCAPE = 27, /**< The escape key. */
     202    CACA_KEY_DELETE = 127, /**< The delete key. */
     203
     204    /* The following keys do not have ASCII equivalents but have been
     205     * chosen to match the SDL equivalents */
    194206    CACA_KEY_UP = 273, /**< The up arrow key. */
    195207    CACA_KEY_DOWN = 274, /**< The down arrow key. */
    196208    CACA_KEY_LEFT = 275, /**< The left arrow key. */
    197209    CACA_KEY_RIGHT = 276, /**< The right arrow key. */
     210
     211    CACA_KEY_INSERT = 277, /**< The insert key. */
     212    CACA_KEY_HOME = 278, /**< The home key. */
     213    CACA_KEY_END = 279, /**< The end key. */
     214    CACA_KEY_PAGEUP = 280, /**< The page up key. */
     215    CACA_KEY_PAGEDOWN = 281, /**< The page down key. */
    198216
    199217    CACA_KEY_F1 = 282, /**< The F1 key. */
Note: See TracChangeset for help on using the changeset viewer.