Permalink
Browse files

Default mouse grab

  • Loading branch information...
mugmuggy authored and TheCycoONE committed Nov 11, 2017
1 parent 3e5e069 commit 80f5e569f715243d6b6861b55db70b29982fae93
Showing with 10 additions and 2 deletions.
  1. +1 −2 CorsixTH/Lua/app.lua
  2. +6 −0 CorsixTH/Lua/config_finder.lua
  3. +3 −0 WindowsInstaller/config_template.txt
View
@@ -152,8 +152,7 @@ function App:init()
self.video:setBlueFilterActive(false)
SDL.wm.setIconWin32()
self.capturemouse = false
self.video:setCaptureMouse(self.capturemouse)
self.video:setCaptureMouse(self.config.capture_mouse)
local caption_descs = {self.video:getRendererDetails()}
if compile_opts.jit then
@@ -102,6 +102,7 @@ local config_defaults = {
play_music = true,
music_volume = 0.5,
prevent_edge_scrolling = false,
capture_mouse = true,
adviser_disabled = false,
scrolling_momentum = 0.8,
twentyfour_hour_clock = true,
@@ -254,6 +255,11 @@ if needs_rewrite then
-- ]=] .. '\n' ..
'prevent_edge_scrolling = ' .. tostring(config_values.prevent_edge_scrolling) .. '\n' .. [=[
-------------------------------------------------------------------------------------------------------------------------
-- Capture mouse: By default enabled (capture mouse = true).
-- ]=] .. '\n' ..
'capture_mouse = ' .. tostring(config_values.capture_mouse) .. '\n' .. [=[
-------------------------------------------------------------------------------------------------------------------------
-- Adviser on/off: If you set this to true the adviser will no longer
-- pop up.
@@ -20,6 +20,9 @@ theme_hospital_install = [[ORIGINAL_HOSPITAL_DIRECTORY]]
-- Edge scrolling: By default enabled (prevent_edge_scrolling = false).
prevent_edge_scrolling = false
--
-- Capture mouse: By default enabled (capture_mouse = true).
capture_mouse = true
--
-- Background music: By default disabled at level 0.5
play_music = true
music_volume = 0.5

0 comments on commit 80f5e56

Please sign in to comment.