@@ -4,9 +4,20 @@
"classes" : ["Input"],
"overloads" : {
"Input" : {
- "BindButton" : ["UIButton", "int"],
- "GetTouch" : ["unsigned"]
+ "BindButton" : ["UIButton", "int"]
}
+ },
+ "typescript_decl" : {
+ "Input" : [
+ "getTouch(index:number):any;"
+ ]
+
+ "haxe_decl" : {
+ "getTouch(index:number):Dynamic;"
@@ -63,7 +63,7 @@ struct TouchState
/// Finger pressure.
float pressure_;
/// Last touched UI element from screen joystick.
- UIWidget* touchedWidget_;
+ WeakPtr<UIWidget> touchedWidget_;
};
/// %Input state for a joystick.