private void ballButton_Click(object sender, EventArgs e) { PyroProxy playfield = new_playfield(); playfield.call_oneway("create_ball"); playfield.close(); }
void f_KeyDown(object sender, KeyEventArgs e) { if (!connected) { return; } if (e.KeyCode == Keys.A) { block.call_oneway("move_left"); last_press = e.KeyCode; } if (e.KeyCode == Keys.D) { block.call_oneway("move_right"); last_press = e.KeyCode; } }