OnKeyUp for iOS

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

OnKeyUp for iOS

Post by sashapont » Fri Jan 03, 2020 7:12 pm

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: 3441
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnKeyUp for iOS

Post by airsoftsoftwair » Fri Jan 03, 2020 9:43 pm

You need to use ShowKeyboard() first. Then you'll be able to get those key events.

sashapont
Posts: 143
Joined: Thu Aug 03, 2017 2:49 pm

Re: OnKeyUp for iOS

Post by sashapont » Fri Jan 03, 2020 9:58 pm

I know. about ShowKeyboard() without this don't work Letter луныю But what can you say about left and write swipes?

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

Re: OnKeyUp for iOS

Post by airsoftsoftwair » Sat Jan 04, 2020 9:13 pm

You mean you want to have "LEFT" and "RIGHT" key events for left and right swipe?

sashapont
Posts: 143
Joined: Thu Aug 03, 2017 2:49 pm

Re: OnKeyUp for iOS

Post by sashapont » Sun Jan 05, 2020 12:21 am

Yes

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

Re: OnKeyUp for iOS

Post by airsoftsoftwair » Sun Jan 05, 2020 1:58 pm

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

Post Reply