protected virtual int InputToBit(E_INPUTS input) { int bit = 1; for (int z = 0; z < (int)input; z++) { bit *= 2; } return(bit); }
public virtual bool GetInput(E_INPUTS input, S_inputStruct inputs) { return((inputs.m_buttons & (char)InputToBit(input)) > 0); }