Strange Behavior on RETURN
Monkey Targets Forums/Android/Strange Behavior on RETURN
| ||
hi, at the moment I develope a small GUI which should look like the Android GUI. Screenshot: Until yesterday everything was fine. But now it seems, that my function GadgetCheck() does not RETURN the value. GadgetCheck() should return the Id of the Buttons or Entries I touched. Here is the part of the function: [monkeycode].... If MausHit=MAUS_HIT Debug="Mausklick auf="+ Focus Return Focus Else Return 0 Endif[/monkeycode] When the problem appears my Debug$ shows, that the "If.." was true and the Focus% was set correct and now also should be returned, but in this calling part... [monkeycode] Method OnUpdate%() If KeyHit(KEY_ESCAPE) Then Error "" MausIn=Gadget.Check() If MausIn<>0 Then Oft=Oft+1 Debug2="!"+Oft+ " " Else Debug2="!NO " +Oft Endif [/monkeycode] ..the variable MausIn% often does get back nothing.The Oft% should show the times I pressed an Button When I set the Framerate to 5 it works always, With 15 it works some times, when I set the frame rate 30 or higher, I get nearly never a success. All the problem started, whaen I tried to integrate the virtual keyboard calling. But I am not sure, whether I only did not recognize it before... Here is the complete code: (You only need to add angelfont.monkey and its 3 standard files to the project, nothing else...) |