offset, rgba, y * stride, stride);
}
- this.Cursor = new OpenTK.MouseCursor(rgba, bitmap.Width, bitmap.Height, 0, 0);
+ //this.Cursor = new OpenTK.MouseCursor(rgba, bitmap.Width, bitmap.Height, 0, 0);
+ this.Cursor = MouseCursor.Default;
}
#region Keyboard_KeyDown
void Keyboard_KeyDown(object sender, KeyboardKeyEventArgs e)
{
if (e.Key == Key.Escape)
+ {
this.Exit();
+ }
- if (e.Key == Key.F11)
+ if (e.Key == Key.Enter && e.Alt)
+ {
if (this.WindowState == WindowState.Fullscreen)
this.WindowState = WindowState.Normal;
else
this.WindowState = WindowState.Fullscreen;
+ }
+
+ if (e.Key == Key.Space)
+ {
+ if (Cursor == MouseCursor.Default)
+ {
+ Cursor = MouseCursor.Empty;
+ }
+ else
+ {
+ Cursor = MouseCursor.Default;
+ }
+ }
}
#endregion