CodeWalrus

Development => Calculators => Calculator News, Coding, Help & Talk => Topic started by: mrhoola on September 27, 2015, 05:22:55 PM

Title: Is It possible to program buttons to move cursor on screen ?
Post by: mrhoola on September 27, 2015, 05:22:55 PM
I dont know how to program an inspire nor do I know if the following is possible

Is it possible to program the Ti Nspire Cx CAS's numeric keys 2,4,6,8 to move the cursor (down, left, right , up) on the screen while holding the control button ? I think it will make it more comfortable to maneuver in scratch pad . It also seems more convenient and less time consuming. It would make me very happy if it were possible , Thank you very much for taking the time to read this !! :)


Title: Re: Is It possible to program buttons to move cursor on screen ?
Post by: novenary on September 27, 2015, 05:48:57 PM
It's possible with ndless, I wouldn't do it myself though as I'm not really interested in hacking around with the OS (I don't even use my nspire except for one project anyway). Other devs like @Vogtinator should know more than me about this.
Title: Re: Is It possible to program buttons to move cursor on screen ?
Post by: mrhoola on September 27, 2015, 05:56:40 PM
Ok . Thanks !
Title: Re: Is It possible to program buttons to move cursor on screen ?
Post by: Vogtinator on September 27, 2015, 08:44:53 PM
Yes, it is definitely possible with ndless. For usb HIDn four syscalls were integrated into the SDK, get_event, send_key_event, send_click_event and send_pad_event.
If you hook the keyboard scan routine and send a pad_event, it should work fine. It's fairly tricky to get hooks working correctly, so it's definitely something you need some nspire-related programming experience for.
Title: Re: Is It possible to program buttons to move cursor on screen ?
Post by: mrhoola on September 28, 2015, 12:19:02 AM
Alright. Thanks.   Does sound quite intricate. 
Title: Re: Is It possible to program buttons to move cursor on screen ?
Post by: mrhoola on September 28, 2015, 04:42:30 PM
..