Skip to content

Commit

Permalink
this needs to be outside the #if flash conditional, that's probably w…
Browse files Browse the repository at this point in the history
…hy I had it at the bottom before
  • Loading branch information
larsiusprime committed Feb 26, 2016
1 parent 3ded9b2 commit f72cace
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flixel/input/gamepad/FlxGamepadButton.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import flixel.input.FlxInput;

class FlxGamepadButton extends FlxInput<Int>
{
#if flash
private var _pressed:Bool = false;

/**
* Optional analog value, so we can check when the value has changed from the last frame
*/
public var value:Float = 0;

#if flash
private var _pressed:Bool = false;

override public function release():Void
{
// simulate button onUp event which does not exist on flash
Expand Down

0 comments on commit f72cace

Please sign in to comment.