OnKeyUp for iOS

Discuss any general programming issues here
Post Reply
sashapont
Posts: 152
Joined: Thu Aug 03, 2017 2:49 pm

OnKeyUp for iOS

Post by sashapont »

I use this function and it works well on Desktop platform& How I can use it on iOs? There are no left key on iOS keyboard, and left may possible by long tap an space and swap to left. Are any way to check this event?

Code: Select all

Function p_HandlerFunc(msg)
  Switch(msg.action)
  Case "OnKeyUp":
If msg.key = "LEFT" 
SystemRequest("Attention", "Left ","OK",#REQICON_WARNING)
EndIf
  EndSwitch
EndFunction

InstallEventHandler({ActiveWindow = p_HandlerFunc,
   OnKeyUp = p_HandlerFunc})

Repeat
  WaitEvent
Forever
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnKeyUp for iOS

Post by airsoftsoftwair »

You need to use ShowKeyboard() first. Then you'll be able to get those key events.
sashapont
Posts: 152
Joined: Thu Aug 03, 2017 2:49 pm

Re: OnKeyUp for iOS

Post by sashapont »

I know. about ShowKeyboard() without this don't work Letter луныю But what can you say about left and write swipes?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnKeyUp for iOS

Post by airsoftsoftwair »

You mean you want to have "LEFT" and "RIGHT" key events for left and right swipe?
sashapont
Posts: 152
Joined: Thu Aug 03, 2017 2:49 pm

Re: OnKeyUp for iOS

Post by sashapont »

Yes
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnKeyUp for iOS

Post by airsoftsoftwair »

Well, swipes are currently not supported by Hollywood. But maybe in the future...
Post Reply