diff --git a/stdlib/env.lua b/stdlib/env.lua new file mode 100644 index 0000000..4543473 --- /dev/null +++ b/stdlib/env.lua @@ -0,0 +1,8 @@ +require('stdlib.util') + +local self = {} + +self.inEditor = SCREENMAN:GetTopScreen():GetName() == 'ScreenEdit' +self.onWine = includes(INPUTMAN:GetDescriptions(), 'Wine Keyboard') + +return self \ No newline at end of file diff --git a/typings.lua b/typings.lua index 80f7e48..230ad3f 100644 --- a/typings.lua +++ b/typings.lua @@ -13,6 +13,8 @@ PREFSMAN = {} SCREENMAN = {} ---@type ProfileManager PROFILEMAN = {} +---@type RageInput +INPUTMAN = {} ---@return Quad --- Defines a Quad actor.