LUA: Function wl.ui.set_user_input_allowed() does not work as explained

Bug #1676581 reported by kaputtnik on 2017-03-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Low
Unassigned

Bug Description

The help says: "Allow or disallow user input. Be warned, setting this will make that mouse movements and keyboard presses are completely ignored."

https://wl.widelands.org/docs/wl/autogen_wl_ui/#wl.ui.set_user_input_allowed

When playing the tutorial 1 (Basic Control) i could move the mouse around when i shouldn't be able to do so (e.g. placing the first Lumberjack). Keyboard presses are ignored (e.g. pressing 'c'), so it is only the mouse movement that is not prevented.

I am not sure if prevention of mouse movement is needed, because the player has advice to look what happen.

GunChleoc (gunchleoc) wrote :

Mouse movement by the user should be blocked while the scenario moves the mouse and then immediately released again. Currently, it results in the user and the scenario fighting for the mouse.

tags: added: lua ui
Changed in widelands:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers