Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Get Raw Key State Working Virtual Buttons for Android Example Help

Author
Message
RJMSTATION
10
Years of Service
User Offline
Joined: 5th Mar 2014
Location:
Posted: 19th Jun 2014 21:02
What are AppGameKit commands needed to get a virtual button to
work on Android Device. I want to press button and play sound.
can anyone provide a working example of that?
Examples like this If GetRawKeyState( 80 ) = 1 Then PlayMusic( Music ) work on my PC. Not on the phone.

Ronald Millian
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Jun 2014 22:49 Edited at: 19th Jun 2014 22:51
state=1 means hold, better use Pressed for a start. (u do nor want start 60 x playmusic per second

full screen per touch
if getpointerpressed()=1
or
GetVirtualButtonPressed( index )
see online help examples:
http://www.appgamekit.com/documentation/Reference/Input/GetVirtualButtonPressed.htm

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
RJMSTATION
10
Years of Service
User Offline
Joined: 5th Mar 2014
Location:
Posted: 9th Jul 2014 18:37
Thanks again Marcus. I will see if I can get a virtual button to work on my phone. I will try again to get a virtual button to work on the phone. Even to do something simple as to play music when touched. PC keyboard commands are provided from what I can see. I can't seem to find one working Android button command that works.

Ronald Millian

Login to post a reply

Server time is: 2024-11-25 06:24:04
Your offset time is: 2024-11-25 06:24:04