Adding basic mouse button support
- Full Mouse support will have to wait for KLL 0.6 * This will include dynamic HID descriptor generation for many wheels and axis depending on the KLL needs - HID descriptor is currently limited to 8 buttons - Technically mouse movement also works (tested by accident), but it's disable for now (needs some API thought) - Adding additional udev rules - Added KRO mode default define
This commit is contained in:
parent
0102d05c86
commit
3c9a97d51a
7 changed files with 155 additions and 52 deletions
|
@ -1,7 +1,7 @@
|
|||
/* Teensyduino Core Library
|
||||
* http://www.pjrc.com/teensy/
|
||||
* Copyright (c) 2013 PJRC.COM, LLC.
|
||||
* Modified by Jacob Alexander (2015)
|
||||
* Modified by Jacob Alexander (2015-2016)
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
|
@ -43,16 +43,11 @@
|
|||
|
||||
// ----- Functions -----
|
||||
|
||||
// Proces pending mouse commands
|
||||
void usb_mouse_send();
|
||||
|
||||
// TODO - More generic
|
||||
int usb_mouse_buttons( uint8_t left, uint8_t middle, uint8_t right );
|
||||
int usb_mouse_move( int8_t x, int8_t y, int8_t wheel );
|
||||
int usb_mouse_position( uint16_t x, uint16_t y );
|
||||
void usb_mouse_screen_size( uint16_t width, uint16_t height, uint8_t mac );
|
||||
extern uint8_t usb_mouse_buttons_state;
|
||||
|
||||
// TODO - Move
|
||||
#define MOUSE_LEFT 1
|
||||
#define MOUSE_MIDDLE 4
|
||||
#define MOUSE_RIGHT 2
|
||||
#define MOUSE_ALL (MOUSE_LEFT | MOUSE_RIGHT | MOUSE_MIDDLE)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue