#include "usb-private.h"
#include "usb-mouse.h"
Functions | |
void | usbRead (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, int minButton, BLOCK block) |
void | usbInit (DevicePtr pDev, usbType type) |
void | usbOff (DevicePtr pDev) |
pointer | usbCreatePrivate (DeviceIntPtr pDevice) |
void | usbDestroyPrivate (pointer priv) |
|
Create a private structure for use within this file. |
|
Destroy a private structure. |
|
Initialized pDev as a usbMouse, usbKeyboard, or usbOther device. |
|
Turn pDev off (i.e., stop taking input from pDev). |
|
Read an event from the pDev device. If the event is a motion event, enqueue it with the motion function. Otherwise, enqueue the event with the enqueue function. The block type is passed to the functions so that they may block SIGIO handling as appropriate to the caller of this function. Since USB devices return EV_KEY events for buttons and keys, minButton is used to decide if a Button or Key event should be queued. |