x


Referencing the Input Buttons

What I would like to do is have a way to reference the input button regardless of what the player changes the controls to. For instance if the player changes the guard button to Z instead of X, I would like a way to tell the player, hey press "proper button" to guard. I can handle everything else, just a bit clueless as how to properly reference the inputs.

How would I go about doing that? I already have my controls set up btw.

more ▼

asked Dec 04 '11 at 09:17 PM

TheEmeralDreamer gravatar image

TheEmeralDreamer
171 47 64 70

hmm, it seems you're just out of luck there, quick scan of the docs shows no way to find out what key has been assigned by the player in the input manager, and google just gave me things like this thread and this question where others were lamenting the lack of such a function.

Might want to post about it in the wish list section of the official forum; I wouldn't think it would that difficult a feature to add, and clearly you're not the first to want it.

Dec 04 '11 at 09:36 PM WillTAtl
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Unfortunately that's not possible at the moment since you have absolutely no access to the input manager from your scripts.

Make sure you vote for this feature HERE.

At the moment the only way around that is to disable the input manager so the user can't change the button, or use your own custom inputmanager. AFAIK there is a ready-to-use implementation in the asset store, but i guess not for free ;)

edit

Maybe i was wrong. This one seems to be free ;)

more ▼

answered Dec 04 '11 at 09:37 PM

Bunny83 gravatar image

Bunny83
45.4k 11 49 207

ah thanks for the answer but I'm not really going to go through all that. Instead I'll just tell the player which button to press, they can figure it out themselves... or just stop playing. LoL

Dec 04 '11 at 09:45 PM TheEmeralDreamer
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x142
x10

asked: Dec 04 '11 at 09:17 PM

Seen: 227 times

Last Updated: Dec 04 '11 at 09:45 PM