Page 1 of 1

User assignable buttons

PostPosted: Sun Dec 04, 2005 1:26 am
by Kodo
As most Pocket PCs have a different arrangement of buttons I'd quite like to be able to offer different button configurations or even allow the user to assign thier own buttons while in game, or is this already possible?

PostPosted: Sun Dec 04, 2005 2:04 am
by willg101
Can't you remap keys or something with script?

PostPosted: Sun Dec 04, 2005 12:59 pm
by Kodo
You mean change button assignments on the pocket pc before loading the game? Maybe, but it'll be a lot of hassle, you don't remap your PC keys every time you want to play Quake, the game allows you to do it. To expect someone to edit their PDAs setup every time they want to play for a short time will make the game a hassle and completely unappealing.

PostPosted: Mon Dec 05, 2005 11:29 am
by ingsan
No, what he meant was that you remap PPC keys directly in GE, not on your PPC.

See Game Properties > Pocket PC keys in Game Editor Application

PPC keys will then automatically be remap with your game 8)

PostPosted: Mon Dec 05, 2005 11:31 am
by makslane
Look the remapKey function:

http://www.game-editor.com/docs/script_ ... m#remapkey
http://game-editor.com/forum/viewtopic. ... ight=remap

You can hold the user keys in some variables, and save with saveVars (http://www.game-editor.com/docs/script_ ... m#savevars), like this:

saveVars("game.sav", "user keys");

When you game starts, you can make this:

loadVars("game.sav", "user keys");

And use remapKey based on saved variables.

PostPosted: Mon Dec 05, 2005 11:41 am
by Kodo
No, what he meant was that you remap PPC keys directly in GE, not on your PPC.

See Game Properties > Pocket PC keys in Game Editor Application

PPC keys will then automatically be remap with your game


That doesnt let the end user, the guy that buys your game change the function of the buttons. I have an Acer n30 that doesnt have a directional pad and limited buttons, I've mapped the game controlls nicely to my PDA, but my PDA button layout is completely different to others, I dont want to force a button configuration on users that may turn out to be unusable.

Thanks makslane, thats exactly it! I'll give it a try :)