use gui.simulateInput

develop
Myk Taylor 2023-09-24 23:45:43 -07:00
parent 8dc5f8e86b
commit 989415cef0
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

@ -2,6 +2,7 @@
--@ module = true --@ module = true
local expect = require('test_util.expect') local expect = require('test_util.expect')
local gui = require('gui')
local helpdb = require('helpdb') local helpdb = require('helpdb')
local json = require('json') local json = require('json')
local mock = require('test_util.mock') local mock = require('test_util.mock')
@ -226,7 +227,7 @@ local function click_top_title_button(scr)
df.global.enabler.tracking_on = 1 df.global.enabler.tracking_on = 1
df.global.enabler.mouse_lbut = 1 df.global.enabler.mouse_lbut = 1
df.global.enabler.mouse_lbut_down = 1 df.global.enabler.mouse_lbut_down = 1
dfhack.screen._doSimulateInput(scr, {}) gui.simulateInput(scr, '_MOUSE_L')
end end
local function load_first_save(scr) local function load_first_save(scr)