is it possible to completely disable BTNEXIT for any program abort?
I want to use it for program control even if it's constantly pressed far longer than 2 sec.
(Program abort is handled by a customized function.)
NXC: completely disable BTNEXIT for program abort?
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: NXC: completely disable BTNEXIT for program abort?
You mean like SetAbortFlag(false); ?
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: NXC: completely disable BTNEXIT for program abort?
Like this:
And if you want to keep pressing the exit button forever:
More constants here.
Alternatively, you can also use:
I prefer that method.
Code: Select all
SetAbortFlag(BTNSTATE_LONG_PRESSED_EV);
Code: Select all
SetAbortFlag(BTNSTATE_NONE);
Alternatively, you can also use:
Code: Select all
SetLongAbort(true);
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Re: NXC: completely disable BTNEXIT for program abort?
SetLongAbort(true) shuts off after 2sec, I know (and tried) that but that's not what I wanted.
But SetAbortFlag(BTNSTATE_NONE) could be a solution, this I will try, thanks!
But SetAbortFlag(BTNSTATE_NONE) could be a solution, this I will try, thanks!
Who is online
Users browsing this forum: No registered users and 2 guests