Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Dec 13, 2023
1 parent 36f1ee4 commit 0351f7e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Sources/iron/Input.hx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ typedef Surface = Mouse;
class Mouse {

public static var buttons = ["left", "right", "middle", "side1", "side2"];
var buttonsDown = [false, false, false, false, false];
var buttonsStarted = [false, false, false, false, false];
var buttonsReleased = [false, false, false, false, false];
public var buttonsDown = [false, false, false, false, false];
public var buttonsStarted = [false, false, false, false, false];
public var buttonsReleased = [false, false, false, false, false];

public var x = 0.0;
public var y = 0.0;
Expand Down Expand Up @@ -265,9 +265,9 @@ class Mouse {
class Pen {

static var buttons = ["tip"];
var buttonsDown = [false];
var buttonsStarted = [false];
var buttonsReleased = [false];
public var buttonsDown = [false];
public var buttonsStarted = [false];
public var buttonsReleased = [false];

public var x = 0.0;
public var y = 0.0;
Expand Down Expand Up @@ -381,9 +381,9 @@ class Pen {
class Keyboard {

public static var keys = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "space", "backspace", "tab", "enter", "shift", "control", "alt", "win", "escape", "delete", "up", "down", "left", "right", "back", ",", ".", ":", ";", "<", "=", ">", "?", "!", '"', "#", "$", "%", "&", "_", "(", ")", "*", "|", "{", "}", "[", "]", "~", "`", "/", "\\", "@", "+", "-", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12"];
var keysDown = new Map<String, Bool>();
var keysStarted = new Map<String, Bool>();
var keysReleased = new Map<String, Bool>();
public var keysDown = new Map<String, Bool>();
public var keysStarted = new Map<String, Bool>();
public var keysReleased = new Map<String, Bool>();
var keysFrame: Array<String> = [];
var repeatKey = false;
var repeatTime = 0.0;
Expand Down Expand Up @@ -578,9 +578,9 @@ class Gamepad {
public static var buttonsXBOX = ["a", "b", "x", "y", "l1", "r1", "l2", "r2", "share", "options", "l3", "r3", "up", "down", "left", "right", "home", "touchpad"];
public static var buttons = buttonsPS;

var buttonsDown: Array<Float> = []; // Intensity 0 - 1
var buttonsStarted: Array<Bool> = [];
var buttonsReleased: Array<Bool> = [];
public var buttonsDown: Array<Float> = []; // Intensity 0 - 1
public var buttonsStarted: Array<Bool> = [];
public var buttonsReleased: Array<Bool> = [];

var buttonsFrame: Array<Int> = [];

Expand Down

0 comments on commit 0351f7e

Please sign in to comment.