Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11mouse.c @ 3775:e5011833348a gsoc2008_manymouse
Linux update
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 14:18:40 +0000 |
parents | 9087a84cba51 |
children | 54d08ecec1cb |
comparison
equal
deleted
inserted
replaced
3774:8b5b67000dc0 | 3775:e5011833348a |
---|---|
71 /*lets get the device parameters*/ | 71 /*lets get the device parameters*/ |
72 valInfo=(XValuatorInfo*)deviceClass; | 72 valInfo=(XValuatorInfo*)deviceClass; |
73 /*if the device reports pressure, lets check it parameteres*/ | 73 /*if the device reports pressure, lets check it parameteres*/ |
74 if(valInfo->num_axes>2) | 74 if(valInfo->num_axes>2) |
75 { | 75 { |
76 data->mouse = SDL_AddMouse(&mouse, index++,DevList[i].name,valInfo->axes[2].max_value,valInfo->axes[2].min_value); | 76 data->mouse = SDL_AddMouse(&mouse, index++,DevList[i].name,valInfo->axes[2].max_value,valInfo->axes[2].min_value,1); |
77 } | 77 } |
78 else | 78 else |
79 { | 79 { |
80 data->mouse = SDL_AddMouse(&mouse, index++,DevList[i].name,0,0); | 80 data->mouse = SDL_AddMouse(&mouse, index++,DevList[i].name,0,0,1); |
81 } | 81 } |
82 break; | 82 break; |
83 } | 83 } |
84 /*if it's not class we're interested in, lets go further*/ | 84 /*if it's not class we're interested in, lets go further*/ |
85 deviceClass=(XAnyClassPtr)((char*)deviceClass + deviceClass->length); | 85 deviceClass=(XAnyClassPtr)((char*)deviceClass + deviceClass->length); |