diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2023-04-07 12:31:59 +0200 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-04-07 13:48:45 +0200 |
commit | d25bb30da26eefbe92cd1e59f7ee4b936c1afcec (patch) | |
tree | 8cf18f86deb8a1231b182929414128074f511742 /input.h | |
parent | 779b65bc22e0463f42161f0e03fee2cef9b2d790 (diff) |
Implement support for mouse events
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -25,6 +25,10 @@ struct InputStream; struct InputStream* InputStreamCreate(int fd); bool InputStreamKeyPress(struct InputStream* input_stream, unsigned evdev_code, bool pressed); +bool InputStreamMouseMove(struct InputStream* input_stream, int dx, int dy); +bool InputStreamMouseButton(struct InputStream* input_stream, unsigned button, + bool pressed); +bool InputStreamMouseWheel(struct InputStream* input_stream, int delta); bool InputStreamHandsoff(struct InputStream* input_stream); void InputStreamDestroy(struct InputStream* input_stream); |