升级控件模块,封装focus相关的几个静态方法

This commit is contained in:
MrZ626
2021-05-15 23:32:14 +08:00
parent 4606bb4d01
commit 9bec223b09
11 changed files with 37 additions and 33 deletions

View File

@@ -1,4 +1,3 @@
local kb=love.keyboard
local gc=love.graphics
local gc_push,gc_pop=gc.push,gc.pop
local gc_origin,gc_translate=gc.origin,gc.translate
@@ -12,7 +11,6 @@ local SETTING,GAME,SCR=SETTING,GAME,SCR
--System
function enableTextInput()if not MOBILE then kb.setTextInput(true)end end
function switchFullscreen()
SETTING.fullscreen=not SETTING.fullscreen
love.window.setFullscreen(SETTING.fullscreen)