Page 1 of 1

How to catch pressed device button number for reuse?

Posted: Fri Sep 15, 2006 9:43 am
by ElizabethD
When a Device button or shift_Device or XShift_Device is pressed, I want to get at the button number that's being pressed but not until few macro steps run, and in some situations during holding it down. I'd like to catch the number before some other code clobbers it. How volatile is either one of those in the 8910?
R_Key1 = R80 ; Debounced key
R_Key = R82 ; Key being processed
When is the latest time I can get at it? Or is there some other place where it might be sitting.

Posted: Fri Sep 15, 2006 9:54 am
by johnsfine
I forget which register holds it, but I remember that through the entire execution of a macro (or extender nested combination of macros) some register holds the key that launched the whole thing.

Best guess it is the "Debounced key" register you mentioned above.

Posted: Fri Sep 15, 2006 6:05 pm
by ElizabethD
Thanks John. I'll try it.
How can I make a keymove that sends no hex code? Just fake something and ignore it?
I just want a protocol to grab and store the button number. I have nothing to say to IR.
johnsfine wrote:...through the entire execution of a macro (or extender nested combination of macros)
Precisely what I'm looking for.

Posted: Tue Sep 19, 2006 8:29 pm
by ElizabethD
It's R_Key1 in R80, debounced key. Holds up very well.