2009-02-22 10:43:35 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
namespace OpenTK.Platform.MacOS
|
|
|
|
{
|
|
|
|
using Input;
|
|
|
|
|
2010-10-29 11:27:40 +00:00
|
|
|
class CarbonInput : IInputDriver, IInputDriver2
|
2009-02-22 10:43:35 +00:00
|
|
|
{
|
|
|
|
List<KeyboardDevice> dummy_keyboard_list = new List<KeyboardDevice>(1);
|
|
|
|
List<MouseDevice> dummy_mice_list = new List<MouseDevice>(1);
|
2009-02-28 23:11:27 +00:00
|
|
|
List<JoystickDevice> dummy_joystick_list = new List<JoystickDevice>(1);
|
2009-02-22 10:43:35 +00:00
|
|
|
|
|
|
|
internal CarbonInput()
|
|
|
|
{
|
|
|
|
dummy_mice_list.Add(new MouseDevice());
|
|
|
|
dummy_keyboard_list.Add(new KeyboardDevice());
|
2009-02-28 23:11:27 +00:00
|
|
|
dummy_joystick_list.Add(new JoystickDevice<object>(0, 0, 0));
|
2009-02-22 10:43:35 +00:00
|
|
|
}
|
2009-02-28 23:11:27 +00:00
|
|
|
|
2009-02-22 10:43:35 +00:00
|
|
|
#region IInputDriver Members
|
|
|
|
|
|
|
|
public void Poll()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region IKeyboardDriver Members
|
|
|
|
|
|
|
|
public IList<KeyboardDevice> Keyboard
|
|
|
|
{
|
|
|
|
get { return dummy_keyboard_list; }
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region IMouseDriver Members
|
|
|
|
|
|
|
|
public IList<MouseDevice> Mouse
|
|
|
|
{
|
|
|
|
get { return dummy_mice_list; }
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
2009-02-28 23:11:27 +00:00
|
|
|
#region IJoystickDriver Members
|
|
|
|
|
|
|
|
public IList<JoystickDevice> Joysticks
|
|
|
|
{
|
|
|
|
get { return dummy_joystick_list; }
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
2009-02-22 10:43:35 +00:00
|
|
|
#region IDisposable Members
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
2010-10-29 11:27:40 +00:00
|
|
|
|
|
|
|
public IMouseDriver2 MouseDriver
|
|
|
|
{
|
|
|
|
get { throw new NotImplementedException(); }
|
|
|
|
}
|
|
|
|
|
|
|
|
public IKeyboardDriver2 KeyboardDriver
|
|
|
|
{
|
|
|
|
get { throw new NotImplementedException(); }
|
|
|
|
}
|
|
|
|
|
|
|
|
public IGamePadDriver GamePadDriver
|
|
|
|
{
|
|
|
|
get { throw new NotImplementedException(); }
|
|
|
|
}
|
2009-02-22 10:43:35 +00:00
|
|
|
}
|
|
|
|
}
|