public override void OnNext(KeyboardActivityArgs ke) { base.OnNext(ke); fController.OnNext(ke); }
public virtual IntPtr OnKeyboardActivity(object sender, KeyboardActivityArgs kbde) { return new IntPtr(1); }
public override void OnKeyboardActivity(object sender, KeyboardActivityArgs kbde) { if (kbde.EventType == KeyEventType.KeyDown) { switch (kbde.VirtualKeyCode) { case VirtualKeyCodes.Left: case VirtualKeyCodes.A: angRotY += 1.0f; break; case VirtualKeyCodes.Right: case VirtualKeyCodes.S: angRotY -= 1.0f; break; } } if (kbde.EventType == KeyEventType.KeyUp) { switch (kbde.VirtualKeyCode) { //case VirtualKeyCodes.Space: // if (flagTexture == fVideoTexture) // flagTexture = fPictureTexture; // else // flagTexture = fVideoTexture; // break; case VirtualKeyCodes.F: polyFillMode = PolygonMode.Fill; break; case VirtualKeyCodes.L: polyFillMode = PolygonMode.Line; break; case VirtualKeyCodes.W: bandera.bWind = !bandera.bWind; break; case VirtualKeyCodes.T: bUseTexture = !bUseTexture; break; } } }