front_idill/extern/fajran-npTuioClient/src/client.h
author bastiena
Fri, 06 Apr 2012 10:44:54 +0200
changeset 21 e4e5f02787a1
child 24 2bdf5d51d434
permissions -rw-r--r--
Front IDILL : Added Communication extern named fajran-npTuioClient It contains the project generating a dll used as a browser plugin.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     1
//   
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     2
// Copyright (C) 2009  Fajran Iman Rusadi
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     3
//
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     4
// This program is free software: you can redistribute it and/or modify
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     5
// it under the terms of the GNU General Public License as published by
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     6
// the Free Software Foundation, either version 3 of the License, or
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     7
// (at your option) any later version.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     8
//
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     9
// This program is distributed in the hope that it will be useful,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    12
// GNU General Public License for more details.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    13
//
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    14
// You should have received a copy of the GNU General Public License
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    15
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    16
//
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    17
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    18
#ifndef CLIENT_H_
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    19
#define CLIENT_H_
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    20
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    21
enum TuioEvent {
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    22
	TE_OBJECT_ADD    = 0,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    23
	TE_OBJECT_UPDATE = 1,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    24
	TE_OBJECT_REMOVE = 2,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    25
	TE_CURSOR_ADD    = 3,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    26
	TE_CURSOR_UPDATE = 4,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    27
	TE_CURSOR_REMOVE = 5,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    28
};
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    29
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    30
typedef struct {
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    31
	TuioEvent type;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    32
	long      fid;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    33
	int       sid;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    34
	float     x;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    35
	float     y;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    36
	float     a;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    37
} TuioEventData;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    38
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    39
void tuio_start(int);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    40
void tuio_stop();
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    41
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    42
extern void tuio_callback(TuioEventData);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    43
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    44
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    45