0 Members and 2 Guests are viewing this topic.
case TPAD_ARROW_RIGHTDOWN: return report.y <= touchpad_info.height/TPAD_RATIO && report.x >= (touchpad_info.width * (TPAD_RATIO - 1))/TPAD_RATIO;
My proposal is that isKeyPressed() tests for press and a other separate function tests for touch and returns the cords. ( I think that's what touchpad_scan() does but I'm not yet so far in the code)
Yes, that is the idea.I'm not sure if "pressed" means report->contact = TRUE, or if it corresponds to a special threshold of report->proximity, so I don't know how to update ndless_tpad.tns to test it. For you would the sensibility of ndless_tpad.tns be a touched Touchpad or a pressed Touchpad?
the "touch" is registered separate on the surface of this key, but only if the "key" is not pressed.
1 if touchpad pressed down, 0 if not
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(touchpad.o): Unknown mandatory EABI object attribute 44c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin/../lib\libndls.a(touchpad.o)collect2: ld returned 1 exit statusmake: *** [mviewer.tns] Error 1
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(show_msgbox.o): Unknown mandatory EABI object attribute 44c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin/../lib\libndls.a(show_msgbox.o)c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(sleep.o): Unknown mandatory EABI object attribute 44c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin/../lib\libndls.a(sleep.o)c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(idle.o): Unknown mandatoryEABI object attribute 44c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin/../lib\libndls.a(idle.o)collect2: ld returned 1 exit statusmake: *** [particles.tns] Error 1