Laxkit  0.0.7.1
Public Member Functions | Public Attributes | Protected Attributes
Laxkit::TUIOListener Class Reference

Class to listen to TUIO events on a specified port. More...

Inheritance diagram for Laxkit::TUIOListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TUIOListener (const char *port)
virtual int Start ()
 Start listening for events.
virtual int Stop ()
 Stop listening for events.
virtual int tuioHandler (int argc, lo_arg **argv, const char *types)
 Handler for tuio events.
virtual int fd ()
 Return a file descriptor used to break anXApp out of its select() call.
- Public Member Functions inherited from Laxkit::LaxDevice
virtual const char * DeviceName ()
 Default is just to return name.
virtual const char * DeviceType ()
 Default just returns NULL.
virtual int GetKey (int k)
 -1 returns number of buttons. Otherwise check status of that button number: return 1=on, 0=off.
virtual int GetButton (int b)
 -1 returns number of buttons. Otherwise check status of that button number: return 1=on, 0=off.
virtual double GetValue (int v, int w)
 -1 returns number of valuators. Otherwise check information of that valuator.
virtual int numFields ()
virtual int getFieldTypeInfo (int f, const char **nme, int *type, int *min, int *max, int *res)
 Retrieve device field info.
virtual int usesX ()
 Return nonzero if the device gets messages through X.
virtual EventData * getEvents ()
 Return an event stream if any events pending.
virtual int eventFilter (EventData **events_ret, XEvent *xev, anXWindow *target, int &isinput)
 Turn an XEvent into EventData object(s).
virtual int selectForWindow (anXWindow *win, unsigned long)
 Called after anXWindow::xlib_window exists, this sets up anything specific so the window gets related events.
virtual int clearReceiver (EventReceiver *receiver)
 Remove all reference to receiver.
virtual ~LaxDevice ()
 Empty virtual destructor.
virtual const char * Name (const char *nname)
 Name the device.

Public Attributes

int current_frame
RefPtrStack< TouchObject > points
int firstinactive
time_t last_fseq
lo_server_thread st
- Public Attributes inherited from Laxkit::LaxDevice
int id
int subid
XID xid
char * name
int active
int screen
int input_head
int input_group
int input_source

Protected Attributes

int filedescriptor

Detailed Description

Class to listen to TUIO events on a specified port.

TUIO is a protocol for passing touch events from a variety of touch enabled surface.


The documentation for this class was generated from the following files:

Mon Feb 17 2014 11:52:59, Laxkit