From look at engine Lua functions are supposed to be
JoyAxis(axis, value)
JoyHat(hat, value)
JoyButtonDown/Up(button, state)-> None of them are found in zeroK -> Not implemented.
Btw: Once the functions had worked but now when I made testwidget ala
function widget:JoyButtonDown(button, state)
Spring.Echo("button:",button, state)
endnothing happend.
The only thing that I worked for me were "Joystick connected/disconnected" messages from
function widget:JoystickEvent(a,b,c)
Spring.Echo (a)
Spring.Echo (b)
Spring.Echo (c)
endwhen (dis)connecting devices.