示例#1
0
    protected virtual int InputToBit(E_INPUTS input)
    {
        int bit = 1;

        for (int z = 0; z < (int)input; z++)
        {
            bit *= 2;
        }

        return(bit);
    }
示例#2
0
 public virtual bool GetInput(E_INPUTS input, S_inputStruct inputs)
 {
     return((inputs.m_buttons & (char)InputToBit(input)) > 0);
 }