(09-25-2015, 08:59 PM)Rapture Wrote: Do you know what the function is called for grabbing the Keyboard/Mouse input?
You should be able to get by with using the OnAction callback that's called in levels, modules, player states and probably other things as well. You can also use the cInput_* functions for directly checking an eAction from anywhere in the code.
cInput_BecameTriggered(eAction_Jump)
You can set up your own eActions in InputHandler.hps and InputHandler_Types.hps if you need something not already defined.
That's the recommended way of doing things and the only way we do it in all of SOMA, but I think you can also do cInput_GetKeyboard()/cInput_GetMouse() to get direct access if you really want to. Something like:
cInput_GetKeyboard().KeyIsDown(eKey_Space)
Haven't tried it myself though and will quickly get complicated if you want to rebind keys or allow gamepad use.