mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Change the term_mouse interface a little so that it gets passed
both the raw and the cooked mouse button, with the mapping being done in advance by the front-end. This is useful because it allows the front-end to use information other than the raw button (e.g. the modifier state) to decide which cooked button to generate. . Front ends other than the Mac one are untested, but they just call translate_button() themselves and pass the result to term_mouse(). [originally from svn r2721]
This commit is contained in:
4
putty.h
4
putty.h
@ -432,7 +432,6 @@ void write_clip(void *frontend, wchar_t *, int, int);
|
||||
void get_clip(void *frontend, wchar_t **, int *);
|
||||
void optimised_move(void *frontend, int, int, int);
|
||||
void set_raw_mouse_mode(void *frontend, int);
|
||||
Mouse_Button translate_button(void *frontend, Mouse_Button b);
|
||||
void connection_fatal(void *frontend, char *, ...);
|
||||
void fatalbox(char *, ...);
|
||||
void modalfatalbox(char *, ...);
|
||||
@ -505,7 +504,8 @@ void term_paint(Terminal *, Context, int, int, int, int, int);
|
||||
void term_scroll(Terminal *, int, int);
|
||||
void term_pwron(Terminal *);
|
||||
void term_clrsb(Terminal *);
|
||||
void term_mouse(Terminal *, Mouse_Button, Mouse_Action, int,int,int,int,int);
|
||||
void term_mouse(Terminal *, Mouse_Button, Mouse_Button, Mouse_Action,
|
||||
int,int,int,int,int);
|
||||
void term_deselect(Terminal *);
|
||||
void term_update(Terminal *);
|
||||
void term_invalidate(Terminal *);
|
||||
|
Reference in New Issue
Block a user