2009-02-22 11:43:35 +01: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-03-01 00:11:27 +01:00
|
|
|
List<JoystickDevice> dummy_joystick_list = new List<JoystickDevice>(1);
|
2009-02-22 11:43:35 +01:00
|
|
|
|
|
|
|
internal CarbonInput()
|
|
|
|
{
|
|
|
|
dummy_mice_list.Add(new MouseDevice());
|
|
|
|
dummy_keyboard_list.Add(new KeyboardDevice());
|
2009-03-01 00:11:27 +01:00
|
|
|
dummy_joystick_list.Add(new JoystickDevice<object>(0, 0, 0));
|
2009-02-22 11:43:35 +01:00
|
|
|
}
|
2009-03-01 00:11:27 +01:00
|
|
|
|
2009-02-22 11:43:35 +01: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-03-01 00:11:27 +01:00
|
|
|
#region IJoystickDriver Members
|
|
|
|
|
|
|
|
public IList<JoystickDevice> Joysticks
|
|
|
|
{
|
|
|
|
get { return dummy_joystick_list; }
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
2009-02-22 11:43:35 +01:00
|
|
|
#region IDisposable Members
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|