mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
vt: add support for mouse motion reports
This commit is contained in:
parent
e5fc266cdb
commit
1610828b8c
4 changed files with 135 additions and 69 deletions
16
terminal.h
16
terminal.h
|
|
@ -145,6 +145,15 @@ struct kbd {
|
|||
int32_t rate;
|
||||
uint32_t key;
|
||||
} repeat;
|
||||
|
||||
xkb_mod_index_t mod_shift;
|
||||
xkb_mod_index_t mod_alt;
|
||||
xkb_mod_index_t mod_ctrl;
|
||||
|
||||
/* Enabled modifiers */
|
||||
bool shift;
|
||||
bool alt;
|
||||
bool ctrl;
|
||||
};
|
||||
|
||||
enum decckm { DECCKM_CSI, DECCKM_SS3 };
|
||||
|
|
@ -202,8 +211,9 @@ struct terminal {
|
|||
struct rgba background;
|
||||
|
||||
struct {
|
||||
int x;
|
||||
int y;
|
||||
int row;
|
||||
int col;
|
||||
int button;
|
||||
} mouse;
|
||||
|
||||
struct cursor cursor;
|
||||
|
|
@ -250,3 +260,5 @@ void term_mouse_down(struct terminal *term, int button, int row, int col,
|
|||
bool shift, bool alt, bool ctrl);
|
||||
void term_mouse_up(struct terminal *term, int button, int row, int col,
|
||||
bool shift, bool alt, bool ctrl);
|
||||
void term_mouse_motion(struct terminal *term, int button, int row, int col,
|
||||
bool shift, bool alt, bool ctrl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue