Ndless KeyListener
30 posts
• Page 3 of 3 • 1, 2, 3
Re: Ndless KeyListener
There is unfortunately not much information about the relatively new ASI API.
You can try to interface with it using Ndless Lua extensions, but I'm not sure how that works out.
What about a Ndless Lua module that exposes a single function "waitForKeyPress" or similiar to work around the lua limitations?
You can try to interface with it using Ndless Lua extensions, but I'm not sure how that works out.
What about a Ndless Lua module that exposes a single function "waitForKeyPress" or similiar to work around the lua limitations?
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Posts: 217
- Joined: 29 Mar 2014, 15:55
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
I will have to read-up on Ndless Lua modules (I don't know much how to use them yet) and see if it helps. But I anticipate that it will take me a day or two to learn. Thank you very much for helping me with this project. What would be the best way to contact you if I have a question in the future?
-
MishaShapo
Niveau 3: MH (Membre Habitué)- Posts: 17
- Joined: 06 May 2016, 04:58
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
He and I, among others here, are around on IRC, particularly in the #firebird-emu channel of the EFNet servers 
(I'd be happy to help with Nspire-Lua stuff if needed, btw, although it seems you have done quite some interesting things with the ASI API (which is pretty new) - you should post that somewhere \o/)

(I'd be happy to help with Nspire-Lua stuff if needed, btw, although it seems you have done quite some interesting things with the ASI API (which is pretty new) - you should post that somewhere \o/)
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14820
- Images: 1131
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: Ndless KeyListener
Wow, Adriweb and Vogtinator are helping me with my project. This is insanely awesome! =D . Adriweb, If you look at my previous post, it outlines what I am trying to do. I suppose that I need to use the key-listening capabilites of the hooks that Vogtinator showed me and the USB-port communicating capbilites of the Lua ASI API all while running this in the background so that my teacher can continue to use her calculator as normal. Could you give me some pointers on where to start ? Thank you. 

-
MishaShapo
Niveau 3: MH (Membre Habitué)- Posts: 17
- Joined: 06 May 2016, 04:58
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
Vogtinator, I borrowed my teachers CAS and flashed an image onto firebird, and indeed you are correct that the hooks you gave me for the touchpad and keypad work for the CAS, but the non-CAS hooks for the touchpad still do not work on the non-CAS firebird flash and my real-life non-CAS CX (the hook for the other keys works fine but doesn't capture keypad presses). Would you guess that this is an issue with the hook address or the hardware (my real-life calculator is the P-0811C model) ?
-
MishaShapo
Niveau 3: MH (Membre Habitué)- Posts: 17
- Joined: 06 May 2016, 04:58
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
MishaShapo wrote:Vogtinator showed me and the USB-port communicating capbilites of the Lua ASI API all while running this in the background so that my teacher can continue to use her calculator as normal. Could you give me some pointers on where to start ? Thank you.
Well, I could help you in Nspire-Lua in general, but I haven't done much about specific ASI stuff (yet?)

Here is a thermometer script he's come up with: archives_voir.php?id=440541

In fact, we've newsed about cool things about all that, see for example:
- viewtopic.php?t=17981
- viewtopic.php?t=17984
- viewtopic.php?t=17996
Hopefully we'll be able to get our hands on a TI-Innovator device at some point (after all, it's what TI had mainly in mind with their USB stuff on the CE and Nspire CX series OS recent and upcoming updates), and more ASI-using scripts should arise...
In the meantime, feel free to look around in the source code of all this, it should be helpful (even though the API documentation isn't bad already - but now there's at least an example)
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14820
- Images: 1131
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: Ndless KeyListener
Thanks for the links, Adriweb. I already saw Jim Bauwen's Arduino example (and I succeeded in creating my own too through spoofing the VID/PID and using a CDC bootloader from the LUFA project). But the other links are very helpful.
For this current project though, I really need the keylistener to run in the background. Vogtinator's hooks work on the CAS CX 4.2 and, well, that's good enough for me now. I don't have any other projects in mind for now, but I think I might revisit Ndless once I actually have my degree in Computer Science (I am going to my first year of university this fall) so that I actually know enough about operating systems and stuff.
For this current project though, I really need the keylistener to run in the background. Vogtinator's hooks work on the CAS CX 4.2 and, well, that's good enough for me now. I don't have any other projects in mind for now, but I think I might revisit Ndless once I actually have my degree in Computer Science (I am going to my first year of university this fall) so that I actually know enough about operating systems and stuff.
-
MishaShapo
Niveau 3: MH (Membre Habitué)- Posts: 17
- Joined: 06 May 2016, 04:58
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
Vogtinator, would you please be able to find out the hooks for the CX CAS 4.2 touchpad (like when the user uses the touch sensitive little box to move the cursor)?
Thank you so much!! =)
Thank you so much!! =)
-
MishaShapo
Niveau 3: MH (Membre Habitué)- Posts: 17
- Joined: 06 May 2016, 04:58
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
0x1022F834 on 4.2 CX CAS is eqivalent to 0x1022F40C on 4.2 CX.
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Posts: 217
- Joined: 29 Mar 2014, 15:55
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Ndless KeyListener
Hey, Vogtinator, thanks for the hooks. I haven't gotten a chance to try them yet because of school, but I will try them soon.
-
MishaShapo
Niveau 3: MH (Membre Habitué)- Posts: 17
- Joined: 06 May 2016, 04:58
- Gender:
- Calculator(s):→ MyCalcs profile
30 posts
• Page 3 of 3 • 1, 2, 3
Return to Native: Ndless, Linux, ...
Who is online
Users browsing this forum: ClaudeBot [spider] and 11 guests