mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 08:15:41 +00:00
85c37f0600
* Source/OpenTK/Platform/Factory.cs: * Source/OpenTK/Input/InputDriver.cs: * Source/OpenTK/Input/IMouseDriver.cs: * Source/OpenTK/Platform/X11/X11Input.cs: * Source/OpenTK/Platform/X11/X11Factory.cs: * Source/OpenTK/Platform/Windows/WMInput.cs: * Source/OpenTK/Platform/IPlatformFactory.cs: * Source/OpenTK/Platform/MacOS/CarbonInput.cs: * Source/OpenTK/Platform/Windows/WinFactory.cs: * Source/OpenTK/Platform/MacOS/MacOSFactory.cs: * Source/OpenTK/Platform/Windows/WinGLNative.cs: * Source/OpenTK/Platform/Windows/WinRawMouse.cs: * Source/OpenTK/Platform/Windows/WinRawInput.cs: Added new MouseDriver interface and added stub internal implementations.
87 lines
1.8 KiB
C#
87 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Text;
|
|
|
|
namespace OpenTK.Platform.MacOS
|
|
{
|
|
using Input;
|
|
|
|
class CarbonInput : IInputDriver
|
|
{
|
|
List<KeyboardDevice> dummy_keyboard_list = new List<KeyboardDevice>(1);
|
|
List<MouseDevice> dummy_mice_list = new List<MouseDevice>(1);
|
|
List<JoystickDevice> dummy_joystick_list = new List<JoystickDevice>(1);
|
|
|
|
internal CarbonInput()
|
|
{
|
|
dummy_mice_list.Add(new MouseDevice());
|
|
dummy_keyboard_list.Add(new KeyboardDevice());
|
|
dummy_joystick_list.Add(new JoystickDevice<object>(0, 0, 0));
|
|
}
|
|
|
|
#region IInputDriver Members
|
|
|
|
public void Poll()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region IKeyboardDriver Members
|
|
|
|
public IList<KeyboardDevice> Keyboard
|
|
{
|
|
get { return dummy_keyboard_list; }
|
|
}
|
|
|
|
public KeyboardState GetState()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public KeyboardState GetState(int index)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region IMouseDriver Members
|
|
|
|
public IList<MouseDevice> Mouse
|
|
{
|
|
get { return dummy_mice_list; }
|
|
}
|
|
|
|
MouseState IMouseDriver.GetState()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
MouseState IMouseDriver.GetState(int index)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region IJoystickDriver Members
|
|
|
|
public IList<JoystickDevice> Joysticks
|
|
{
|
|
get { return dummy_joystick_list; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region IDisposable Members
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|