Jump to content

  • Log In with Google      Sign In   
  • Create Account

ready made key mapper?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 kalixxx   Members   -  Reputation: 105

Like
0Likes
Like

Posted 09 November 2012 - 11:48 PM

hi guys long time no see (back to programing after YEARS)

before i make one of my own (and after googleing it) i wanted to ask if code for a key mapper exists out there.
i meen the player side prefrence key map that lets to say what key dose what action.

need it for mouse and joysticks too...

if any1 knows of one rolling around out there i would save me a ice amount of time if not... any tips on how to make one?

Sponsor:

#2 kalixxx   Members   -  Reputation: 105

Like
0Likes
Like

Posted 11 November 2012 - 01:22 PM

really nothing?
not even a "stop looking its not out there"?

#3 Postie   Members   -  Reputation: 962

Like
0Likes
Like

Posted 11 November 2012 - 06:01 PM

For my current project (in C#) I created an enumerated type that represents the actions you can perform. Then to map a key I simply use a Dictionary with a Keys parameter as the lookup key. When a key is pressed I lookup the KeyAction and fire an appropriate event. In my case I don't handle joysticks/gamepads or remapping of the mouse though.
Currently working on an open world survival RPG - For info check out my Development blog: ByteWrangler




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS