Azgraal

Veteran
Veteran
Joined
Jan 31, 2016
Messages
15
Reaction score
1
First Language
Portuguese
Primarily Uses
Greetings.

I've been working on my first somewhat serious project on RMMV and after toying around a bit with the game on my phone I realised it could be really useful if I could use the physical back key of my phone for any function ingame.


Currently I have it so it doesn't force exit the game, but that's as far as my faint JS knowledge allowed me.

Is there any way to bind the android back key to the 'escape' object from the Input function on rpg_core.js?

Thanks a bunch.
 
Last edited by a moderator:

Ultimatony

Veteran
Veteran
Joined
Jan 6, 2016
Messages
72
Reaction score
6
Not all android phones have a physical back button on the phone, on mine its part of the screen. It hides itself whenever I do something full screen. It would make it harder to play your game on phones like that, unless you can make it stay up.
 

Azgraal

Veteran
Veteran
Joined
Jan 31, 2016
Messages
15
Reaction score
1
First Language
Portuguese
Primarily Uses
Oh yeah, I totally forgot about that, as all the android phones I have available have the physical key. I guess deactivating the key or adding a confirmation query will have to do then...

Thanks for the headsup!
 

Warped_Tales

Veteran
Veteran
Joined
Sep 17, 2016
Messages
47
Reaction score
64
First Language
English
Primarily Uses
N/A
Azgraal: How did you accomplish getting the back key not to force quit? I've been struggling with this for hours. 


Thanks in advance!


Nevermind - I got there in the end :p
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

I've been in Fort Myers since Thursday night. I'm going home tomorrow or the next day... lol, I desperately need a good taste of homemade Japanese food. I might not be Japanese or even Asian (I'm American born and raised), but I absolutely love authentic Japanese cooking. Restaurant food doesn't do it justice.
Haven't been working on any of my projects or resources lately as I'll soon be moving to a new apartment. It's been a stressful move but I'm really looking forward to it.
//Sees it's the same price at Best Buy for a new SSD as Amazon
//Sees it's 103F outside and Best Buy is half a hour of driving.
//Orders from Amazon.
I'll wait the 2-3 days. :LZSwink:
Just a little teaser screenshot of Mountain Village...

Screenshot (364).png

Forum statistics

Threads
112,373
Messages
1,067,869
Members
146,025
Latest member
urmomsbigbazoongas
Top