PatchworkOS
Loading...
Searching...
No Matches
mouse.h
Go to the documentation of this file.
1#ifndef _SYS_MOUSE_H
2#define _SYS_MOUSE_H 1
3
4#include <stdint.h>
5
6#if defined(__cplusplus)
7extern "C"
8{
9#endif
10
11#include "_internal/clock_t.h"
12
30typedef enum
31{
33 MOUSE_RIGHT = (1 << 0),
34 MOUSE_MIDDLE = (1 << 1),
35 MOUSE_LEFT = (1 << 2)
37
51
52#if defined(__cplusplus)
53}
54#endif
55
56#endif
57
mouse_buttons_t
Mouse buttons enum.
Definition mouse.h:31
@ MOUSE_RIGHT
Right mouse button.
Definition mouse.h:33
@ MOUSE_NONE
None.
Definition mouse.h:32
@ MOUSE_MIDDLE
Middle mouse button.
Definition mouse.h:34
@ MOUSE_LEFT
Left mouse button.
Definition mouse.h:35
__UINT64_TYPE__ clock_t
A nanosecond time.
Definition clock_t.h:13
__INT64_TYPE__ int64_t
Definition stdint.h:16
Mouse event structure.
Definition mouse.h:45
mouse_buttons_t buttons
Which buttons were held down durring the event.
Definition mouse.h:47
clock_t time
Clock ticks since boot when the event happened.
Definition mouse.h:46
int64_t deltaY
Change in Y coordinate.
Definition mouse.h:49
int64_t deltaX
Change in X coordinate.
Definition mouse.h:48