Commit afe32505 authored by Sam Lantinga's avatar Sam Lantinga

============================================================

parent 90ff13a6
......@@ -47,7 +47,7 @@ X11_InitTouch(_THIS)
while(!feof(fd)) {
if(fgets(line,256,fd) <=0) continue;
if(line[0] == '\n') {
if(vendor == 1386 || vendor==1){
if(vendor == 1386 || vendor==1) {
sprintf(tstr,"/dev/input/event%i",event);
......@@ -56,7 +56,6 @@ X11_InitTouch(_THIS)
touch.pressure_min = 0;
touch.id = event;
touch.driverdata = SDL_malloc(sizeof(EventTouchData));
EventTouchData* data = (EventTouchData*)(touch.driverdata);
......@@ -67,7 +66,6 @@ X11_InitTouch(_THIS)
data->up = SDL_FALSE;
data->down = SDL_FALSE;
data->eventStream = open(tstr,
O_RDONLY | O_NONBLOCK);
ioctl (data->eventStream, EVIOCGNAME (sizeof (tstr)), tstr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment