core: wayland: Remove references to wl.state (#1306)
This commit is contained in:
parent
e4bc709ea2
commit
d09990700f
1 changed files with 2 additions and 2 deletions
|
|
@ -650,8 +650,8 @@ const pointer_listener = struct {
|
||||||
|
|
||||||
const mouse_button: Core.MouseButton = @enumFromInt(button - c.BTN_LEFT);
|
const mouse_button: Core.MouseButton = @enumFromInt(button - c.BTN_LEFT);
|
||||||
const pressed = state == c.WL_POINTER_BUTTON_STATE_PRESSED;
|
const pressed = state == c.WL_POINTER_BUTTON_STATE_PRESSED;
|
||||||
const x = wl.state.input_state.mouse_position.x;
|
const x = wl.core.input_state.mouse_position.x;
|
||||||
const y = wl.state.input_state.mouse_position.y;
|
const y = wl.core.input_state.mouse_position.y;
|
||||||
|
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
wl.core.pushEvent(Core.Event{ .mouse_press = .{
|
wl.core.pushEvent(Core.Event{ .mouse_press = .{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue