Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: AppPlayer and game control with arrow keys
Reply to topic
Author Message
angel61606



Joined: Jul 8, 2020
Posts: 25

PostPosted: Sep 16, 2020 6:01 AM    Post subject: AppPlayer and game control with arrow keys

I am trying to use games which are controlled by keyboard but the problem is they only use "arrow keys"for control. I used to use AppPlayer for games which were controlled by other keys such as w and s etc. but this time my game allows control only by arrow keys, I am not sure what code i should use to map these keys because there is no such a thing as ascii coden for these keys.


thanks a billion in advance for your help
jarek



Joined: Oct 22, 2007
Posts: 823

PostPosted: Sep 16, 2020 6:52 PM    Post subject:

See this example snippet, it moves the cursor left every 2 seconds:

http://proatech.com/design/appplayer_notepad2.bpd

It also prints on console the codes you can then use in AppPlayer.
angel61606



Joined: Jul 8, 2020
Posts: 25

PostPosted: Sep 19, 2020 3:22 AM    Post subject:

thank you very much for your reply. now I learnt how to control arrow keys , I was wondering if there is any way that I can deactivate one of the keys using the feedback.
jarek



Joined: Oct 22, 2007
Posts: 823

PostPosted: Sep 19, 2020 9:18 AM    Post subject:

Your design can control only the keys it presses/releases. It can't deactivate keys which you (or the game on its own) press on the keyboard.
angel61606



Joined: Jul 8, 2020
Posts: 25

PostPosted: Sep 19, 2020 10:29 AM    Post subject:

OK thanks, I have a game which should be installed, i installed in my computer. now i want to run it from app player no matter what i do, this error occurs: java.lang.NullPointerException. and a window opens which gives me this message "Unable to init engine" . thanks in advance for any recommendation on this.
jarek



Joined: Oct 22, 2007
Posts: 823

PostPosted: Sep 19, 2020 10:44 AM    Post subject:

The ApplicationPlayer may not be able to play all apps or games. Some experimentation may help, but it is not a plug and play.

The "Unable to init engine" message seems to be coming from the game, not BioEra. Looks like the game is not liking the way it is being executed.

Maybe you could try to set "Execute in folder".
angel61606



Joined: Jul 8, 2020
Posts: 25

PostPosted: Sep 20, 2020 6:58 AM    Post subject:

I had problems with other games which required installation , I guess Bioera doesnt allow any access to these games properly because I have tried many different games. I had to go back to flash games and run one of them :/ although I had two simple games one chicken invaders and the other one horse rally but i did need more portable games. I wish i knew the name of some games that could work properly in bioera using the appplayer.
jarek



Joined: Oct 22, 2007
Posts: 823

PostPosted: Sep 20, 2020 9:04 AM    Post subject:

It could be a matter of proper configuration, I am not sure.

If I can install one of those games, I could try to experiment a little.
Reply to topic