Esempio n. 1
0
 public Debugger(EmuoTron.Debug debug)
 {
     this.debug = debug;
     InitializeComponent();
     CheckForIllegalCrossThreadCalls = false;
 }
Esempio n. 2
0
 public static byte PlayerToByte(EmuoTron.Controller player)
 {
     byte input = 0;
     if (player.a)
         input |= 1;
     input <<= 1;
     if (player.b)
         input |= 1;
     input <<= 1;
     if (player.start)
         input |= 1;
     input <<= 1;
     if (player.select)
         input |= 1;
     input <<= 1;
     if (player.left)
         input |= 1;
     input <<= 1;
     if (player.right)
         input |= 1;
     input <<= 1;
     if (player.up)
         input |= 1;
     input <<= 1;
     if (player.down)
         input |= 1;
     return input;
 }