usb_hid: Enable digitizers to produce button events from tip and barrel switches
Change-Id: Ifcf542e6b04f2f210c80528279e70e0fdd1bb4e3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2685 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
20719db962
commit
52a54e1b51
@@ -98,14 +98,21 @@ typedef struct {
|
||||
} mouse_movement;
|
||||
|
||||
|
||||
#define B_TIP_SWITCH 0x01
|
||||
#define B_SECONDARY_TIP_SWITCH 0x02
|
||||
#define B_BARREL_SWITCH 0x04
|
||||
#define B_ERASER 0x08
|
||||
#define B_TABLET_PICK 0x0F
|
||||
|
||||
|
||||
typedef struct {
|
||||
uint32 buttons;
|
||||
uint32 switches;
|
||||
float xpos;
|
||||
float ypos;
|
||||
bool has_contact;
|
||||
float pressure;
|
||||
int32 clicks;
|
||||
bool eraser;
|
||||
bigtime_t timestamp;
|
||||
int32 wheel_ydelta;
|
||||
int32 wheel_xdelta;
|
||||
|
||||
Reference in New Issue
Block a user