Commit Graph

13 Commits

Author SHA1 Message Date
Ayman Bagabas a154847611
feat: extended Coordinates mouse reporting & additional buttons support (#594)
* feat(mouse): add extended mouse & shift key support

Support SGR(1006) mouse mode
Support parsing shift key press
Support additional mouse buttons
Report which button was released
Report button motion

* fix: key.go sgr len missing calculation (#841)

* chore(test): add sgr mouse msg detect test

---------

Co-authored-by: robinsamuel <96998379+robin-samuel@users.noreply.github.com>
2023-12-04 11:50:59 -05:00
Raphael 'kena' Poss d9c675138c fix(key),test: simplify the input analysis code 2023-06-15 14:51:02 +02:00
Glenn Gonda 4880cf2a09 docs: fix typos and clean up comments 2023-02-19 08:45:22 -05:00
Christian Muehlhaeuser 1e1b5f716d chore: gofmt sources 2022-08-15 12:25:55 +02:00
Christian Muehlhaeuser 6301f93cb2 Support receiving batched mouse events
Mouse events may trigger more than a single events simultaneously.

Fixes #212.
2022-02-13 08:40:04 +01:00
Christian Rocha c5ed2b4a01 Add missing GoDocs 2021-09-07 15:37:14 -04:00
Christian Rocha 955ce5c82c Extract magic number in X10 mouse parser 2021-05-31 10:43:31 -04:00
Aleksandr Krivoshchekov 02a0509e34
Simplify code and add tests for `mouse.go` (#30) 2020-11-07 06:43:12 +01:00
Christian Rocha a4f26594b2
Rename MouseButton type to more accurate MouseEventType 2020-09-28 16:42:39 -04:00
Christian Rocha 591fcabdd4
Explicitly ignore io.Writer return values in renderer 2020-09-28 16:28:40 -04:00
Christian Rocha 8025748828
Some comments on mouse stuff 2020-07-13 11:26:57 -04:00
Christian Rocha d6cf9e69b6
Fix bug where wheel wasn't being reported if a modifier was pressed 2020-06-23 10:34:46 -04:00
Christian Rocha d86cb562f0
Add basic mouse support 2020-06-22 20:41:26 -04:00