AS3 Flixel Setting control keys as variables

21 Views Asked by At

I would like to store keyboard input as a variable in the class (not the function), that way they're not hardcoded.

if(FlxG.keys.(myKeyVar))

any help is appreciated.

1

There are 1 best solutions below

0
PHaZerous On

Was overlooking this.

FlxG.keys.pressed(myKeyVar);

ugh