mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 16:55:28 +00:00
Renamed KeyMap to WinKeyMap.
This commit is contained in:
parent
f16b6c55c6
commit
e5b5af7b11
|
@ -24,7 +24,7 @@ namespace OpenTK.Platform.Windows
|
|||
MouseDevice mouse = new MouseDevice();
|
||||
IList<KeyboardDevice> keyboards = new List<KeyboardDevice>(1);
|
||||
IList<MouseDevice> mice = new List<MouseDevice>(1);
|
||||
internal static readonly KeyMap KeyMap = new KeyMap();
|
||||
internal static readonly WinKeyMap KeyMap = new WinKeyMap();
|
||||
|
||||
#region --- Constructor ---
|
||||
|
||||
|
@ -53,6 +53,8 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#endregion
|
||||
|
||||
#region protected override void WndProc(ref Message msg)
|
||||
|
||||
protected override void WndProc(ref Message msg)
|
||||
{
|
||||
switch ((WindowMessage)msg.Msg)
|
||||
|
@ -97,6 +99,7 @@ namespace OpenTK.Platform.Windows
|
|||
return;
|
||||
|
||||
case WindowMessage.XBUTTONUP:
|
||||
// TODO: Is this correct?
|
||||
mouse[((msg.WParam.ToInt32() & 0xFFFF0000) >> 16) != (int)MouseKeys.XButton1 ? MouseButton.Button1 : MouseButton.Button2] = false;
|
||||
return;
|
||||
|
||||
|
@ -149,6 +152,8 @@ namespace OpenTK.Platform.Windows
|
|||
base.WndProc(ref msg);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IInputDriver Members
|
||||
|
||||
public void Poll()
|
||||
|
|
|
@ -13,12 +13,12 @@ using System.Diagnostics;
|
|||
|
||||
namespace OpenTK.Platform.Windows
|
||||
{
|
||||
internal class KeyMap : Dictionary<VirtualKeys, Input.Key>
|
||||
internal class WinKeyMap : Dictionary<VirtualKeys, Input.Key>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes the map between VirtualKeys and OpenTK.Key
|
||||
/// </summary>
|
||||
internal KeyMap()
|
||||
internal WinKeyMap()
|
||||
{
|
||||
try
|
||||
{
|
Loading…
Reference in a new issue