aboutsummaryrefslogtreecommitdiff
path: root/protocol/ps2_mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/ps2_mouse.h')
-rw-r--r--protocol/ps2_mouse.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/protocol/ps2_mouse.h b/protocol/ps2_mouse.h
index 305a9bdba..27d9790d4 100644
--- a/protocol/ps2_mouse.h
+++ b/protocol/ps2_mouse.h
@@ -39,6 +39,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
39#define PS2_MOUSE_X_OVFLW 6 39#define PS2_MOUSE_X_OVFLW 6
40#define PS2_MOUSE_Y_OVFLW 7 40#define PS2_MOUSE_Y_OVFLW 7
41 41
42
43/*
44 * Scroll by mouse move with pressing button
45 */
46/* mouse button to start scrolling; set 0 to disable scroll */
47#ifndef PS2_MOUSE_SCROLL_BTN_MASK
48#define PS2_MOUSE_SCROLL_BTN_MASK (1<<PS2_MOUSE_BTN_MIDDLE)
49#endif
50/* send button event when button is released within this value(ms); set 0 to disable */
51#ifndef PS2_MOUSE_SCROLL_BTN_SEND
52#define PS2_MOUSE_SCROLL_BTN_SEND 300
53#endif
54/* divide virtical and horizontal mouse move by this to convert to scroll move */
55#ifndef PS2_MOUSE_SCROLL_DIVISOR_V
56#define PS2_MOUSE_SCROLL_DIVISOR_V 2
57#endif
58#ifndef PS2_MOUSE_SCROLL_DIVISOR_H
59#define PS2_MOUSE_SCROLL_DIVISOR_H 2
60#endif
61
62
42uint8_t ps2_mouse_init(void); 63uint8_t ps2_mouse_init(void);
43void ps2_mouse_task(void); 64void ps2_mouse_task(void);
44 65