Mercurial > sdl-ios-xcode
comparison src/video/qnxgf/SDL_hiddi_mouse.h @ 3139:7f684f249ec9
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 May 2009 22:41:08 +0000 |
parents | 7b3a09fb9c8b |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3125:d71d8ceda8b3 | 3139:7f684f249ec9 |
---|---|
30 #include <inttypes.h> | 30 #include <inttypes.h> |
31 | 31 |
32 /* USB keyboard multimedia keys are generating this packet */ | 32 /* USB keyboard multimedia keys are generating this packet */ |
33 typedef struct mouse_packet2 | 33 typedef struct mouse_packet2 |
34 { | 34 { |
35 uint8_t buttons; | 35 uint8_t buttons; |
36 int8_t wheel; | 36 int8_t wheel; |
37 } mouse_packet2; | 37 } mouse_packet2; |
38 | 38 |
39 /* PS/2 mice are generating this packet */ | 39 /* PS/2 mice are generating this packet */ |
40 typedef struct mouse_packet4 | 40 typedef struct mouse_packet4 |
41 { | 41 { |
42 uint8_t buttons; | 42 uint8_t buttons; |
43 int8_t horizontal; | 43 int8_t horizontal; |
44 int8_t vertical; | 44 int8_t vertical; |
45 int8_t wheel; | 45 int8_t wheel; |
46 } mouse_packet4; | 46 } mouse_packet4; |
47 | 47 |
48 /* USB keyboard with mice wheel onboard generating this packet */ | 48 /* USB keyboard with mice wheel onboard generating this packet */ |
49 typedef struct mouse_packet5 | 49 typedef struct mouse_packet5 |
50 { | 50 { |
51 uint8_t buttons; | 51 uint8_t buttons; |
52 int8_t horizontal; | 52 int8_t horizontal; |
53 int8_t vertical; | 53 int8_t vertical; |
54 int8_t wheel; | 54 int8_t wheel; |
55 uint8_t state; | 55 uint8_t state; |
56 } mouse_packet5; | 56 } mouse_packet5; |
57 | 57 |
58 /* USB multi-button mice are generating this packet */ | 58 /* USB multi-button mice are generating this packet */ |
59 typedef struct mouse_packet8 | 59 typedef struct mouse_packet8 |
60 { | 60 { |
61 uint8_t buttons; | 61 uint8_t buttons; |
62 int8_t horizontal; | 62 int8_t horizontal; |
63 int8_t vertical; | 63 int8_t vertical; |
64 int8_t wheel; | 64 int8_t wheel; |
65 int16_t horizontal_precision; | 65 int16_t horizontal_precision; |
66 int16_t vertical_precision; | 66 int16_t vertical_precision; |
67 } mouse_packet8; | 67 } mouse_packet8; |
68 | 68 |
69 #endif /* __SDL_HIDDI_MOUSE_H__ */ | 69 #endif /* __SDL_HIDDI_MOUSE_H__ */ |