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;
|
|
|
|
|
|
|
|
class CarbonInput : IInputDriver
|
|
|
|
{
|
|
|
|
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; }
|
|
|
|
}
|
|
|
|
|
2010-10-20 14:33:23 +00:00
|
|
|
public KeyboardState GetState()
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public KeyboardState GetState(int index)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2009-02-22 10:43:35 +00:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region IMouseDriver Members
|
|
|
|
|
|
|
|
public IList<MouseDevice> Mouse
|
|
|
|
{
|
|
|
|
get { return dummy_mice_list; }
|
|
|
|
}
|
|
|
|
|
2010-10-20 14:58:38 +00:00
|
|
|
MouseState IMouseDriver.GetState()
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
MouseState IMouseDriver.GetState(int index)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2009-02-22 10:43:35 +00:00
|
|
|
#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
|
|
|
|
}
|
|
|
|
}
|