private static void Pad_KeyDown(object sender, SIFAScontrol.Abstraction.KeyEventArgs args) { (sender as Gamepad).Vibration = new VibrationMotorSpeed(0.5, 0.5); //Console.WriteLine(args.Key); /*Actions teszt = new Actions(); * for(int i = 0; i < 6; i++) * { * if(teszt[i].KeyCode == args.Key) * { * Console.WriteLine(teszt[i].Name); * } * }*/ //foreach () //{ // if (args.Key == ) // { // Console.WriteLine(gpb); // } //} }
private void Pad_KeyUp(object sender, SIFAScontrol.Abstraction.KeyEventArgs args) { //(sender as Gamepad).Vibration = new VibrationMotorSpeed(0.0, 0.0); for (int i = 0; i < actions.ialSize(); i++) { if (actions[i].KeyCode.Equals(args.Key)) { // do stuff //actions[i].ConcreteAction.Action(); actions[i].ConcreteAction.KeyUpAction(); } } }
private static void Pad_KeyUp(object sender, SIFAScontrol.Abstraction.KeyEventArgs args) { (sender as Gamepad).Vibration = new VibrationMotorSpeed(0.0, 0.0); //Console.WriteLine(args.Key); }