Changeset 4643 for libcaca/trunk


Ignore:
Timestamp:
Sep 2, 2010, 11:02:06 PM (9 years ago)
Author:
Sam Hocevar
Message:

Comply with cygwin's curses.h implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/ncurses.c

    r4369 r4643  
    263263
    264264    /* Set the escape delay to a ridiculously low value */
     265#if defined set_escdelay
     266    set_escdelay(10);
     267#else
    265268    ESCDELAY = 10;
     269#endif
    266270
    267271    /* Activate colour */
     
    473477            case BUTTON1_DOUBLE_CLICKED: CLICK(1); CLICK(1); break;
    474478            case BUTTON1_TRIPLE_CLICKED: CLICK(1); CLICK(1); CLICK(1); break;
     479#if defined BUTTON1_RESERVED_EVENT
    475480            case BUTTON1_RESERVED_EVENT: break;
     481#endif
    476482
    477483            case BUTTON2_PRESSED: PRESS(2); break;
     
    480486            case BUTTON2_DOUBLE_CLICKED: CLICK(2); CLICK(2); break;
    481487            case BUTTON2_TRIPLE_CLICKED: CLICK(2); CLICK(2); CLICK(2); break;
     488#if defined BUTTON2_RESERVED_EVENT
    482489            case BUTTON2_RESERVED_EVENT: break;
     490#endif
    483491
    484492            case BUTTON3_PRESSED: PRESS(3); break;
     
    487495            case BUTTON3_DOUBLE_CLICKED: CLICK(3); CLICK(3); break;
    488496            case BUTTON3_TRIPLE_CLICKED: CLICK(3); CLICK(3); CLICK(3); break;
     497#if defined BUTTON3_RESERVED_EVENT
    489498            case BUTTON3_RESERVED_EVENT: break;
     499#endif
    490500
    491501            case BUTTON4_PRESSED: PRESS(4); break;
     
    494504            case BUTTON4_DOUBLE_CLICKED: CLICK(4); CLICK(4); break;
    495505            case BUTTON4_TRIPLE_CLICKED: CLICK(4); CLICK(4); CLICK(4); break;
     506#if defined BUTTON4_RESERVED_EVENT
    496507            case BUTTON4_RESERVED_EVENT: break;
     508#endif
    497509
    498510            default:
Note: See TracChangeset for help on using the changeset viewer.