|
version 1.5, 2000/04/17 16:29:53
|
version 1.6, 2000/08/04 16:13:25
|
|
|
|
| | |
| #include "xf86OSmouse.h" | #include "xf86OSmouse.h" |
| #include "../input/mouse/mouse.h" | #include "../input/mouse/mouse.h" |
| #define DEBUG |
|
| #ifdef DEBUG | #ifdef DEBUG |
| # define DEBUG_P(x) ErrorF(x"\n"); | # define DEBUG_P(x) ErrorF(x"\n"); |
| #else | #else |
|
|
|
| int em3timeout; | int em3timeout; |
| Bool chordmiddle; | Bool chordmiddle; |
| int flags; | int flags; |
| |
char* device; |
| pointer private; | pointer private; |
| } mseParamsRec, *mseParamsPtr; | } mseParamsRec, *mseParamsPtr; |
| | |
|
|
|
| } | } |
| | |
| Bool | Bool |
| |
MiscExtSetMouseDevice(pointer mouse, char* device) |
| |
{ |
| |
mseParamsPtr mse = mouse; |
| |
|
| |
mse->device = device; |
| |
return TRUE; |
| |
} |
| |
|
| |
Bool |
| MiscExtGetKbdSettings(pointer *kbd) | MiscExtGetKbdSettings(pointer *kbd) |
| { | { |
| kbdParamsPtr kbdptr; | kbdParamsPtr kbdptr; |
|
|
|
| if (reopen) | if (reopen) |
| (pMse->device->deviceProc)(pMse->device, DEVICE_ON); | (pMse->device->deviceProc)(pMse->device, DEVICE_ON); |
| /* Set pInfo->options too */ | /* Set pInfo->options too */ |
| |
|
| |
if (mse->device) |
| |
xf86ReplaceStrOption(pInfo->options, "Device", mse->device); |
| | |
| } | } |
| if (mse_or_kbd == MISC_KEYBOARD) { | if (mse_or_kbd == MISC_KEYBOARD) { |