Ignore:
Timestamp:
Nov 25, 2007, 12:11:59 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Adapt the C++ bindings to the event API change.
Location:
libcaca/trunk/cxx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/caca++.cpp

    r1462 r2050  
    1919 */
    2020
     21#include <iostream>
    2122
    2223#include "caca++.h"
    23 
    2424
    2525Caca::Caca(Cucul *cv)
     
    7979int Caca::getEvent(unsigned int g, Event *n, int aa)
    8080{
    81     return caca_get_event(dp, g, &n->e, aa);
     81    return caca_get_event(dp, g, n ? &n->e : NULL, aa);
    8282}
    8383
  • libcaca/trunk/cxx/caca++.h

    r1462 r2050  
    4848
    4949 protected:
    50     caca_event e;
     50    caca_event_t e;
    5151};
    5252
  • libcaca/trunk/cxx/cxxtest.cpp

    r1462 r2050  
    4444    Cucul *qq, *pig;
    4545    Caca  *kk;
    46     Event ev;
    4746
    4847    int x = 0, y = 0, ix = 1, iy = 1;
     
    7776    kk->setDisplayTime(20000);
    7877
    79     while(!kk->getEvent(ev.CACA_EVENT_KEY_PRESS, &ev, 0)) {
     78    while(!kk->getEvent(Event::CACA_EVENT_KEY_PRESS, NULL, 0)) {
    8079
    8180
Note: See TracChangeset for help on using the changeset viewer.