Author Topic: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!  (Read 26861 times)

0 Members and 1 Guest are viewing this topic.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Sort, i misread your post. I can add it to the next update once I start to rework the keyboard mapping.
Ndless.me with the finest TI-Nspire programs

Offline crazyracer98

  • LV2 Member (Next: 40)
  • **
  • Posts: 29
  • Rating: +3/-0
    • View Profile
Hi,
I did it :D

https://www.dropbox.com/s/kw44x6otnmdnzb6/usbhidn-qwertz.tns

I added also some new features:
Code: [Select]
if ((ns_key & 0xFF) == '1')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '1' + '!');
if ((ns_key & 0xFF) == '2')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '2' + '"');
if ((ns_key & 0xFF) == '3')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '3' + '§');
if ((ns_key & 0xFF) == '4')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '4' + '$');
if ((ns_key & 0xFF) == '5')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '5' + '%');
if ((ns_key & 0xFF) == '6')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '6' + '&');
if ((ns_key & 0xFF) == '7')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '7' + '/');
if ((ns_key & 0xFF) == '8')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '8' + '(');
if ((ns_key & 0xFF) == '9')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '9' + ')');
if ((ns_key & 0xFF) == '0')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '0' + '=');
if ((ns_key & 0xFF) == ',')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - ',' + ';');
if ((ns_key & 0xFF) == '.')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '.' + ':');
if ((ns_key & 0xFF) == '-')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '-' + '_');
if ((ns_key & 0xFF) == '+')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '+' + '*');

EDIT:
How did you find out the TI Nspire scancodes?
« Last Edit: June 01, 2013, 04:21:25 pm by crazyracer98 »

Offline crazyracer98

  • LV2 Member (Next: 40)
  • **
  • Posts: 29
  • Rating: +3/-0
    • View Profile
Sorry for spam, I implemented better language support and some SHIFT-modifiers for QWERTY and QWERTZ keyboards


Offline crazyracer98

  • LV2 Member (Next: 40)
  • **
  • Posts: 29
  • Rating: +3/-0
    • View Profile
Sorry for spam, I implemented better language support and some SHIFT-modifiers for QWERTY and QWERTZ keyboards

I added now AZERTY modifiers :D
https://www.dropbox.com/s/v8f3ca0dk69kjqk/usbhidn-2013_6_2_17.15.zip

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
I found a intel robot usb hub that also uses micro usb to plug in so it could work (and it looks awesome)
https://theintelstore.com/images/catalog/large/2_2933.jpg

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!


Offline crazyracer98

  • LV2 Member (Next: 40)
  • **
  • Posts: 29
  • Rating: +3/-0
    • View Profile
New keys are now available:
QWERTY: `, ~, ', ", #, ~, \, |
QWERTZ: ^, °, ä, Ä, #, ', <, >
AZERTY: ², ù, %, *, µ, <, >

https://www.dropbox.com/sh/cl5ixpest7nov7v/TbSocwGcVa/usbhidn-2013_6_3_23.00.zip
« Last Edit: June 04, 2013, 07:07:20 am by crazyracer98 »

Offline crazyracer98

  • LV2 Member (Next: 40)
  • **
  • Posts: 29
  • Rating: +3/-0
    • View Profile
In the next time, no updates are planned from my side because of school :( (Sourcecodes are in the downloaded *.zip file)