Removed all instances of refresh_text

This commit is contained in:
Stefanos A 2013-12-24 00:15:43 +01:00 committed by thefiddler
parent ddc52ce135
commit f459647613

View file

@ -39,20 +39,9 @@ namespace Examples.Tests
MouseEnter += delegate { mouse_in_window = true; }; MouseEnter += delegate { mouse_in_window = true; };
MouseLeave += delegate { mouse_in_window = false; }; MouseLeave += delegate { mouse_in_window = false; };
Move += delegate { refresh_text = true; };
Resize += delegate { refresh_text = true; };
WindowBorderChanged += delegate { refresh_text = true; };
WindowStateChanged += delegate { refresh_text = true; };
FocusedChanged += delegate { refresh_text = true; };
Mouse.Move += MouseMoveHandler; Mouse.Move += MouseMoveHandler;
Mouse.ButtonDown += MouseButtonHandler; Mouse.ButtonDown += MouseButtonHandler;
Mouse.ButtonUp += MouseButtonHandler; Mouse.ButtonUp += MouseButtonHandler;
foreach (var joystick in Joysticks)
{
joystick.Move += delegate { refresh_text = true; };
joystick.ButtonDown += delegate { refresh_text = true; };
joystick.ButtonUp += delegate { refresh_text = true; };
}
} }
private void KeyPressHandler(object sender, KeyPressEventArgs e) private void KeyPressHandler(object sender, KeyPressEventArgs e)
@ -98,13 +87,10 @@ namespace Examples.Tests
void MouseMoveHandler(object sender, MouseMoveEventArgs e) void MouseMoveHandler(object sender, MouseMoveEventArgs e)
{ {
refresh_text = true;
} }
void MouseButtonHandler(object sender, MouseButtonEventArgs e) void MouseButtonHandler(object sender, MouseButtonEventArgs e)
{ {
refresh_text = true;
if (e.Button == MouseButton.Left && e.IsPressed) if (e.Button == MouseButton.Left && e.IsPressed)
{ {
CursorVisible = false; CursorVisible = false;