public Keys[] GetPressedKeys() { int num = 0; KeyboardState.CheckPressedKeys(this.currentState0, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState1, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState2, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState3, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState4, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState5, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState6, 0, null, ref num); KeyboardState.CheckPressedKeys(this.currentState7, 0, null, ref num); Keys[] array = new Keys[num]; if (num > 0) { int num2 = 0; KeyboardState.CheckPressedKeys(this.currentState0, 0, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState1, 1, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState2, 2, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState3, 3, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState4, 4, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState5, 5, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState6, 6, array, ref num2); KeyboardState.CheckPressedKeys(this.currentState7, 7, array, ref num2); } return(array); }