Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable cover gadget in lieu of new engine version
- Loading branch information
1 parent
cbd1d94
commit 7620083
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function widget:GetInfo() | ||
return { | ||
name = "Grabinput Local", | ||
desc = "Enables GrabInput in Windowed mode", | ||
author = "abma", | ||
date = "2012-08-11", | ||
license = "GPL v2 or later", | ||
layer = 5, | ||
enabled = false | ||
} | ||
end | ||
|
||
function widget:Initialize() | ||
Spring.SendCommands("grabinput 1") | ||
end | ||
|
||
function widget:GameFrame(n) | ||
-- send grabinput every 30 seconds | ||
if n%960 == 1 then | ||
Spring.SendCommands("grabinput 1") | ||
end | ||
end |