be more consistent with coordinates

This commit is contained in:
nhmall
2022-07-02 09:10:03 -04:00
parent 0bd5b3d39e
commit 3004cf2d34
74 changed files with 831 additions and 746 deletions

View File

@@ -881,7 +881,7 @@ curses_nhgetch(void)
}
/*
int nh_poskey(int *x, int *y, int *mod)
int nh_poskey(coordxy *x, coordxy *y, int *mod)
-- Returns a single character input from the user or a
a positioning event (perhaps from a mouse). If the
return value is non-zero, a character was typed, else,
@@ -896,7 +896,7 @@ int nh_poskey(int *x, int *y, int *mod)
routine always returns a non-zero character.
*/
int
curses_nh_poskey(int *x, int *y, int *mod)
curses_nh_poskey(coordxy *x, coordxy *y, int *mod)
{
int key = curses_nhgetch();

View File

@@ -974,7 +974,7 @@ event, or the first non-mouse key event in the case of mouse
movement. */
int
curses_get_mouse(int *mousex, int *mousey, int *mod)
curses_get_mouse(coordxy *mousex, coordxy *mousey, int *mod)
{
int key = '\033';

View File

@@ -30,7 +30,7 @@ int curses_convert_attr(int attr);
int curses_read_attrs(const char *attrs);
char *curses_fmt_attrs(char *);
int curses_convert_keys(int key);
int curses_get_mouse(int *mousex, int *mousey, int *mod);
int curses_get_mouse(coordxy *mousex, coordxy *mousey, int *mod);
void curses_mouse_support(int);
#endif /* CURSMISC_H */