mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-16 16:37:34 +00:00
Enabled HIDInput IGamePadDriver implementation
This commit is contained in:
parent
5d88a8daf4
commit
8f7eebb58d
|
@ -50,7 +50,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
// Requires Mac OS X 10.5 or higher.
|
// Requires Mac OS X 10.5 or higher.
|
||||||
// Todo: create a driver for older installations. Maybe use CGGetLastMouseDelta for that?
|
// Todo: create a driver for older installations. Maybe use CGGetLastMouseDelta for that?
|
||||||
class HIDInput : IInputDriver2, IMouseDriver2, IKeyboardDriver2/*, IGamePadDriver*/
|
class HIDInput : IInputDriver2, IMouseDriver2, IKeyboardDriver2, IGamePadDriver
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
public IMouseDriver2 MouseDriver { get { return this; } }
|
public IMouseDriver2 MouseDriver { get { return this; } }
|
||||||
public IKeyboardDriver2 KeyboardDriver { get { return this; } }
|
public IKeyboardDriver2 KeyboardDriver { get { return this; } }
|
||||||
public IGamePadDriver GamePadDriver { get { throw new NotImplementedException(); } }
|
public IGamePadDriver GamePadDriver { get { return this; } }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -366,6 +366,25 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region IGamePadDriver Members
|
||||||
|
|
||||||
|
public GamePadState GetState(int index)
|
||||||
|
{
|
||||||
|
return new GamePadState();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GamePadCapabilities GetCapabilities(int index)
|
||||||
|
{
|
||||||
|
return new GamePadCapabilities();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetName(int index)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region NativeMethods
|
#region NativeMethods
|
||||||
|
|
||||||
class NativeMethods
|
class NativeMethods
|
||||||
|
|
Loading…
Reference in a new issue