--- src/headers/gpmInt.h +++ src/headers/gpmInt.h @@ -91,21 +91,27 @@ /*** mouse commands ***/ -#define GPM_AUX_SEND_ID 0xF2 +#define GPM_AUX_SEND_ID 0xF2 /* Get ID: ACK + 1 byte ID */ #define GPM_AUX_ID_ERROR -1 #define GPM_AUX_ID_PS2 0 #define GPM_AUX_ID_IMPS2 3 /* these are shameless stolen from /usr/src/linux/include/linux/pc_keyb.h */ -#define GPM_AUX_SET_RES 0xE8 /* Set resolution */ #define GPM_AUX_SET_SCALE11 0xE6 /* Set 1:1 scaling */ #define GPM_AUX_SET_SCALE21 0xE7 /* Set 2:1 scaling */ -#define GPM_AUX_GET_SCALE 0xE9 /* Get scaling factor */ +#define GPM_AUX_SET_RES 0xE8 /* Set resolution */ +#define GPM_AUX_GET_SCALE 0xE9 /* Get scaling factor: ACK + 3 byte status pack */ #define GPM_AUX_SET_STREAM 0xEA /* Set stream mode */ +#define GPM_AUX_GET_DATA 0xEB /* Read data: ACK + 3 byte movement pack */ +#define GPM_AUX_RESET_WRAP 0xEC /* From wrap mode to previous */ +#define GPM_AUX_SET_WRAP 0xEE /* Set wrap mode */ +#define GPM_AUX_SET_REMOTE 0xF0 /* Set remote mode */ #define GPM_AUX_SET_SAMPLE 0xF3 /* Set sample rate */ #define GPM_AUX_ENABLE_DEV 0xF4 /* Enable aux device */ #define GPM_AUX_DISABLE_DEV 0xF5 /* Disable aux device */ +#define GPM_AUX_DEFAULTS 0xF6 /* Reset to defaults */ +#define GPM_AUX_RESEND 0xFE /* Resend last pack */ #define GPM_AUX_RESET 0xFF /* Reset aux device */ #define GPM_AUX_ACK 0xFA /* Command byte ACK. */