Modding Discussion Thoughts on input system

Discussion in 'Starbound Modding' started by Hanachi, Dec 14, 2013.

  1. Hanachi

    Hanachi Void-Bound Voyager

    So currently certain inputs are binary, and some are true/false. Is there a specific reason for all inputs not being defined as true/false to allow for 'Hold to use' techs without having to backpack off true/false input keys?

    Examples:

    .moves["left"] is defined as true/false based on if it is currently being held or not.
    .moves["special"] is defined as 1 or 0. It is 1 when it is pressed, then is set to 0 right after regardless of being held or not.

    Edit: Seems I was a bit off on this. It's more correct to ask why is .moves["special"] binary and not true/false.
     
    Last edited: Dec 14, 2013

Share This Page