its suposed to echo what keys I hit to the console
Probleam: I got a widget with the same commands working but I cant get this gadget to work
question1): does the Spring.Echo command work for gadgets?
question2): am I confused on how the synced code command is ment to be used?
Code: Select all
function gadget:GetInfo()
return
{
name = "tets",
desc = "Allows me to play and see what is needed to add commands",
author = "me myself and I",
date = "here , now. and a little last week",
license = "potato and fries",
layer = 1,
enabled = true
}
end
echo = Spring.Echo
if (gadgetHandler:IsSyncedCode()) then
function gadget:KeyPress(key, mods, isRepeat, label, unicode)
echo ( key )
end
end