Moved the c++-events into its own subdirectory

This commit is contained in:
Micke Prag 2011-05-18 10:22:01 +00:00
parent c4864af31b
commit 65bbbc0351

View file

@ -23,7 +23,13 @@ Events::~Events() {
}
void Events::deviceEvent(int deviceId, int method, const char *data) {
printf("Event from device %i\n", deviceId);
if (method == TELLSTICK_TURNON) {
printf("ON event from device %i\n", deviceId);
} else if (method == TELLSTICK_TURNOFF) {
printf("OFF event from device %i\n", deviceId);
} else {
printf("Unknown event from device %i\n", deviceId);
}
}
void Events::deviceEventCallback(int deviceId, int method, const char *data, int callbackId, void *context) {