Author Topic: Ndless 2.0 for TI-Nspire Clickpad/Touchpad  (Read 179416 times)

0 Members and 4 Guests are viewing this topic.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #120 on: December 24, 2010, 10:21:30 am »
The versions of ncaster/floorcaster/snake from ticalc will not work because all were built for Ndless 1.1.  There is a 1.7 compatible of Ncaster somewhere here on Omnimaga (probably in the Ncaster project thread).

* apcalc pokes bwang to update ncaster on ticalc :P

As for Chip's Challenge not working:  that is strange.  It works fine for me with the Non CAS with both touchpad (although the keys are mixed up) and the clickpad for me (although, I think I am using a more recent version than in the thread, as I know mine has a test-map I made with water and such).


Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #121 on: December 24, 2010, 10:31:31 am »
I'm guessing different addresses/layout need to be found for CAS Touchpad.
They are already fund and as far as I understand also implemented in "common.h" but it seem not to work for us :(

I get the all keys (except on/home + arrow-keys) right by modifying that header but the tns' build so would then have their keys scrambled with a Cklickpad...

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #122 on: December 24, 2010, 12:57:59 pm »
Hmm, an alpha already? That was quick. Sadly, my dad uninstalled almost everything on my computer and I cant remember what so building for me.

oh well, 1.7 it is

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #123 on: December 24, 2010, 01:05:33 pm »
It remains 5 days before Ndless birthday, isn't it ? :D
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline codeslicer

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #124 on: December 24, 2010, 01:06:11 pm »
Shrear, can't there just be two separate files then, like one for CAS and nonCAS, and then also for Touchpad and Clickpad?

Also, don't the arrow keys work on the Touchpad non-CAS; they're just scrambled? So why don't they work on CAS?

Btw apcalc has 666 posts! (devil :P)
« Last Edit: December 24, 2010, 01:07:38 pm by codeslicer »

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #125 on: December 24, 2010, 01:58:59 pm »
Ask this ExtendeD, not me...

but if you wait a few seconds I may post an "alternative" header-file.


EDIT: added one, but if you use this one keys will be scrambled on a Clickpat, also arrow-keys and on do not work( at least for me)

(ExtendeD I hope you don't mind?)

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #126 on: December 24, 2010, 03:34:07 pm »
Try this:
put after function main()
Code: [Select]
int main(void){
.
.
unsigned intmask = TCT_Local_Control_Interrupts(0);
.
.
TCT_Local_Control_Interrupts(intmask);
return 0;
}
See if this fixes the Touchpad probem.
I had to do this for test.c in Ndless1.3, because I was getting unexplained crashes.
This fixes using stdout, will it fix the Touchpad problem ?

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #127 on: December 24, 2010, 04:20:30 pm »
No, doesn't help...
Arrowkeys+on still do not react

but the clock on the screen seems to reacts on the touchpat, wtf...

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #128 on: December 25, 2010, 11:40:28 am »
Tried installing the build from page 7 on my Nspire, but without success. After 50 popups of "format not supported" errors and reboots, I gave up. I made sure not to have any special characters in folder names, and even tried with the calc plugged and unplugged into the PC, without results. Am I missing something?

Info:
Nspire non-CAS Touchpad
OS 2.0.1 (modified version with TNOC without boot2 and examples - maybe this is the problem?)
Old HW version (no power bug on OS 1.1)
« Last Edit: December 25, 2010, 11:40:57 am by Silver Shadow »
Former Coder of Tomorrow


Offline codeslicer

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #129 on: December 25, 2010, 12:16:07 pm »
For now, while the keypad isn't working, would it be possible to just map the arrow keys to the numbers?

i.e., map up to 8, down to 5, left to 4, and right to 6?

EDIT: I tried compiling myself on Ubuntu, but I'm getting
Quote
utils_light_thumb_os-1.7.o: In function `ut_calc_reboot':
utils.c:(.text+0xcc): undefined reference to `__builtin_unreachable'

so if anyone could try doing the above that'd be cool in the meantime
« Last Edit: December 25, 2010, 12:54:11 pm by codeslicer »

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #130 on: December 25, 2010, 01:31:54 pm »
I just comment those out like this (see older version of Ndless)
while(1); //__builtin_unreachable();
This line should ideally never get reached anyway, since its in a function that
does'nt return.


Offline codeslicer

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #131 on: December 25, 2010, 02:20:32 pm »
Thanks bsl.  I got through that part but now I'm getting

Quote
arm-none-linux-gnueabi-objcopy -O binary ndless_core.elf ndless_core.bin
stage2_hexsize=`wc -c ndless_stage2.bin | cut -f1 -d' ' | xargs  printf '%04x'` \
   && test -n "$stage2_hexsize" \
   && echo -e -n "\x${stage2_hexsize:2:2}\x${stage2_hexsize:0:2}\x00\x00" > ../calcbin/ndless_resources.tns
/bin/sh: Bad substitution
make[1]: *** [ndless_resources.tns] Error 2
make[1]: Leaving directory `/home/cs/trunk/arm'
make: *** [subdirs] Error 1

Do you think it would be possible to put something like this into common.h?

Code: [Select]
#define KEY_NSPIRE_UP         KEYTPAD_(0x1C, 0x040, 0x18, 0x040)
#define KEY_NSPIRE_RIGHT      KEY_(0x14, 0x008)
#define KEY_NSPIRE_DOWN       KEY_(0x14, 0x080)
#define KEY_NSPIRE_LEFT       KEYTPAD_(0x1C, 0x010, 0x18, 0x020)

I think it should work based on the map at http://tibank.forumactif.com/t6325-ndless-17-sur-cas-touchpad
« Last Edit: December 25, 2010, 02:21:43 pm by codeslicer »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #132 on: December 25, 2010, 02:51:19 pm »
Actually, the arrow and click keys cannot be checked the same way as the other keys on the touchpad. That mapping is actually for some sort of touchpad prototype which is supported by the OS (which is what nspire_emu uses, and thus where this faulty key mapping comes from). I personally have no idea how to check the touchpad, but Goplat mentioned some OS routines that can be used.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #133 on: December 25, 2010, 03:17:04 pm »
Tried installing the build from page 7 on my Nspire, but without success. After 50 popups of "format not supported" errors and reboots, I gave up. I made sure not to have any special characters in folder names, and even tried with the calc plugged and unplugged into the PC, without results. Am I missing something?

Info:
Nspire non-CAS Touchpad
OS 2.0.1 (modified version with TNOC without boot2 and examples - maybe this is the problem?)
Old HW version (no power bug on OS 1.1)

The pop-up that this file format is not supported doesn't necessary mean that Ndless didn't install, try out particles , there is a big chance that it works.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #134 on: December 25, 2010, 06:34:51 pm »
Actually, the arrow and click keys cannot be checked the same way as the other keys on the touchpad. That mapping is actually for some sort of touchpad prototype which is supported by the OS (which is what nspire_emu uses, and thus where this faulty key mapping comes from).

It might be unrelated.
But here is a corrected image of what the TouchPad keys are doing when used:
* in boot1
* in boot2
* in the diagnostic software
* with a 1.x OS




This is not the prototype anymore.
Please tell me if I've made any error.
Thank you!

Hope it can be usefull to you!
(hard to use the diagnostic software or even the maintenance menu without having that image...)
« Last Edit: December 25, 2010, 07:02:27 pm by critor »
TI-Planet co-admin.