Remove @:to metadata from conversion functions to allow compilation with Haxe4
Implicit conversion between both abstracts is still possible because both have a @:from function https://github.com/HaxeFoundation/haxe/issues/6441
This commit is contained in:
committed by
Joshua Granick
parent
146ba1d231
commit
93a0c37649
@@ -257,7 +257,7 @@ import lime._backend.native.NativeCFFI;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@:to private static function toScanCode (keyCode:KeyCode):ScanCode {
|
private static function toScanCode (keyCode:KeyCode):ScanCode {
|
||||||
|
|
||||||
#if (lime_cffi && !macro)
|
#if (lime_cffi && !macro)
|
||||||
var code:Int = keyCode;
|
var code:Int = keyCode;
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ import lime._backend.native.NativeCFFI;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@:to private static function toKeyCode (scanCode:ScanCode):KeyCode {
|
private static function toKeyCode (scanCode:ScanCode):KeyCode {
|
||||||
|
|
||||||
return KeyCode.fromScanCode (scanCode);
|
return KeyCode.fromScanCode (scanCode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user