by SlyVTT » 20 Mar 2021, 09:02
Hi,
As a follow up, I developed a Keyboard handler class for my GUI Toolkit.
I am now able to detect and manage keypressed and keyreleased events as well as status of all individual keys except one single key that seems not to work : the ON/HOME
![[home] :nsho:](./images/smilies/nspire/ns_ho.png)
key.
As per Hachskpire Wiki, it should be addressed by looking at bit 9 of register 900E0010 but it does not seen to work.
All the other keys are ok.
I developed a small routine that scan all the registers from 900E0010 to 900E001F to check where it can be mapped, but I am not able to find any bit representing that key (of course if works for all the other keys). So I do not understand how this key is working.
the Key handler code is here
https://github.com/SlyVTT/Widget-for-TI-NSpire/blob/main/Toolkit/KeyboardTask.cpp, and key ON/HOME code is at line 61. I need to optimise the code, but first would like it to work in a dirty mode

It is a bit frustrating to have a handler able to manage all the keys (touchpad arrows and click are managed by the "Mouse" handler not in this scope) except one. It is like falling at kilometre 42 in a marathon !!!
If someone has an idea.
Cheers
Sly
Some works in progress :
And more to come ... stay tuned