Exemplo n.º 1
0
 public void Deserialize(BinaryReader reader)
 {
     axisType           = (AxisType)reader.ReadByte();
     clipRatio          = reader.ReadSingle();
     screenWidth        = reader.ReadInt32();
     screenHeight       = reader.ReadInt32();
     device             = (BBInputDevice)reader.ReadByte();
     monitoringButtons  = (BBInputButton)reader.ReadInt32();
     monitoringKeyboard = reader.ReadBoolean();
 }
Exemplo n.º 2
0
 public void StartRecord(BBInputButton buttons, bool keyboard)
 {
     mIsRecording    = true;
     mRecordButtons  = buttons;
     mRecordKeyboard = keyboard;
     mRecordTime     = 0;
     mRecordHead     = null;
     mRecordCurrent  = null;
     mInputProxy.OnRecordStart();
 }
Exemplo n.º 3
0
    public virtual void Deserialize(BinaryReader reader)
    {
        code   = (BBMacroOpCode)reader.ReadByte();
        button = (BBInputButton)reader.ReadByte();
        key    = (BBVirtualKey)reader.ReadUInt16();
        int length = reader.ReadInt32();

        data = new float[length];
        for (int i = 0; i < length; i++)
        {
            data[i] = reader.ReadSingle();
        }
        times      = reader.ReadInt32();
        duration   = reader.ReadSingle();
        delay      = reader.ReadSingle();
        script     = reader.ReadString();
        scriptData = reader.ReadString();
    }