Input troll - refresh on orientation change
This commit is contained in:
parent
248b858978
commit
85d0f29ed2
|
@ -335,6 +335,12 @@ namespace BizHawk.Client.EmuHawk.CustomControls
|
|||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr GetDC(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr BeginPaint(IntPtr hWnd, ref IntPtr lpPaint);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr EndPaint(IntPtr hWnd, IntPtr lpPaint);
|
||||
|
||||
[DllImport("gdi32.dll")]
|
||||
private static extern int Rectangle(IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
|
||||
|
||||
|
|
|
@ -308,6 +308,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
if (e.Control && !e.Alt && !e.Shift && e.KeyCode == Keys.R) // Ctrl + R
|
||||
{
|
||||
HorizontalOrientation ^= true;
|
||||
Refresh();
|
||||
}
|
||||
|
||||
base.OnKeyDown(e);
|
||||
|
|
Loading…
Reference in New Issue