FecarytheLion on DeviantArthttp://creativecommons.org/licenses/by-nc-nd/3.0/https://www.deviantart.com/fecarythelion/art/Key-Control-Example-Redone-330508866FecarytheLion

Deviation Actions

FecarytheLion's avatar

Key Control Example (Redone)

Published:
280 Views

Description

If you are interested in the original, go here.

At first only redid the whole UI, using my own newly invented UI classes for easy usage of several different skin sets, all generated programatically, if necessary, but then later I though about the whole PlayerControl class I did and rewrote the whole thing.
Only that one class is used now for easy key accessing.
Also, you don't have to change the sourcecode anymore, just use class-internal functions to add new keys.
In addition you can assign several keys to one action (see above). Several events will be dispatched if two keys match, containing information about all the actions they are assinged to.
I won't publish this one, however - not only because I think noone would actually use it, but also because I did not comment the new class and I feel uncomfortable with republishing anything at all in general.
Image size
402x122px 30.53 KB
Comments0
Join the community to add your comment. Already a deviant? Log In