mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
[input] update ncinput_nomod_p() and future-proof it #2540
This commit is contained in:
parent
1af9b16276
commit
dc8c7d8826
2
USAGE.md
2
USAGE.md
@ -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…
x
Reference in New Issue
Block a user