mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 01:15:38 -04:00
Enable / Disable Touchscreen #481
This commit will reverse the logic of touch screen as suggested by @ArjanOnwezen
This commit is contained in:
parent
4a0d42ed34
commit
cebbc12084
5 changed files with 10 additions and 10 deletions
|
@ -109,7 +109,7 @@ void Manager::feed(const Frame& frame) {
|
|||
|
||||
switch(state) {
|
||||
case State::NoTouch:
|
||||
if( touch_stable && touch_pressure && persistent_memory::enable_touchscreen()) {
|
||||
if( touch_stable && touch_pressure && !persistent_memory::disable_touchscreen()) {
|
||||
if( point_stable() ) {
|
||||
state = State::TouchDetected;
|
||||
touch_started();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue