[input] update ncinput_nomod_p() and future-proof it #2540

pull/2543/head
nick black 2 years ago
parent 1af9b16276
commit dc8c7d8826
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -729,7 +729,7 @@ notcurses_get_blocking(struct notcurses* n, ncinput* ni){
static inline bool
ncinput_nomod_p(const ncinput* ni){
return !ni->alt && !ni->ctrl && !ni->shift;
return !(ni->modifiers);
}
```

@ -1231,7 +1231,7 @@ notcurses_get_blocking(struct notcurses* n, ncinput* ni){
// Was 'ni' free of modifiers?
static inline bool
ncinput_nomod_p(const ncinput* ni){
return !(ni->alt | ni->ctrl | ni->shift);
return !(ni->modifiers);
}
#define NCMICE_NO_EVENTS 0

Loading…
Cancel
Save