I am just porting a little game to Android,
The last thing I gotta do is taking the name from ShowKeyboard(). Its a keyevent, as far as I understood.
So I wrote a very small PC program first program to get to there. The entry should stop when I press return.
And here I stuck a little bit. Can you suggest something?
Code: Select all
@DISPLAY {ScaleMode = #SCALEMODE_AUTO, FitScale = True, HideTitleBar = True}
Function p_HandlerFunc(msg)
Switch(msg.action)
Case "OnKeyDown":
/* "User has pressed OnKeyDown" */
If msg.key = "ESC" Then End
If msg.key = "RETURN" Then End
s$ = msg.key
Print(s$)
EndSwitch
EndFunction
InstallEventHandler({OnKeyDown = p_HandlerFunc})
Repeat
WaitEvent
Until s$="ENTER"