Skip to content

Commit b899a4c

Browse files
authored
Merge pull request #62 from UncertainProd/fix-for-flx-no-mouse
Exclude code using `FlxG.mouse` from compilation if FLX_NO_MOUSE is defined
2 parents 883233c + 96ac633 commit b899a4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

haxe/ui/backend/ScreenImpl.hx

+3-2
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ class ScreenImpl extends ScreenBase {
169169

170170
private var _cursor:String = null;
171171
public function setCursor(cursor:String, offsetX:Null<Int> = null, offsetY:Null<Int> = null) {
172-
#if haxeui_flixel_no_custom_cursors
172+
#if (haxeui_flixel_no_custom_cursors || FLX_NO_MOUSE)
173173
return;
174-
#end
174+
#else
175175

176176
if (!CursorHelper.useCustomCursors) {
177177
return;
@@ -190,6 +190,7 @@ class ScreenImpl extends ScreenBase {
190190
} else {
191191
FlxG.mouse.load(null);
192192
}
193+
#end
193194
}
194195

195196
public override function addComponent(component:Component):Component {

0 commit comments

Comments
 (0)