Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ON/HOME key not correctly managed on CX and CX II models #278

Open
SlyVTT opened this issue Mar 22, 2021 · 1 comment
Open

ON/HOME key not correctly managed on CX and CX II models #278

SlyVTT opened this issue Mar 22, 2021 · 1 comment

Comments

@SlyVTT
Copy link

SlyVTT commented Mar 22, 2021

Hello Everybody,

It seems that libndls is not correctly managing the ON/HOME key of the TI nSpire CX and CX II models as it only scrutinize the memory address from 0x900E0010 to 0x900E001E.

on_key_pressed() function also add bit 4 of 0x900B0028 for CX/CM and bit 8 of 0x90140810 for the CX II.

But any_key_pressed() and isKeyPressed() functions does not seem to take this key into consideration.

This means that we just look if a key is pressed with any_key_pressed() and just press On/HOME, it won't be detected (I tested this and confirm it does not work)

Same if we have a loop with on_key_pressed() branching to key detection, isKeyPressed( NSP_KEY_HOME ) should not return true cause the memory address does not seem to be mapped for that specific key. (I haven't tested it right now, but reading the libndls code, it should not work).

Thanks guys and bravo for the very good job you are doing !!

Ciao

Sly

@Vogtinator
Copy link
Contributor

PRs welcome! Should fortunately be simple to fix, both in isKeyPressed and any_key_pressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants