When I use Leadwerks I normally have my game run at desktop resolution windowed. Sometimes I want to see the performance difference in full screen (it's always better). To do this I would normally need to edit main.lua. After a bit of thinking and experimenting I made a short 'hack' that will allow you to hold f5 of f6 to run in full screen instead of windowed.
tempwindow=Window:Create("key capture",0,0,1,1,1)
context=Context:Create(tempwindow,0)
if (tempwindow:KeyDown(Key.F5) or tempwindow:KeyDown(Key.F6))== true then
windowstyle=windowstyle+window.FullScreen
end
Place this after
if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end
and before
window=Window:Create(title,0,0,System:GetProperty("screenwidth","1024"),System:GetProperty("screenheight","768"),windowstyle)