4 changed files with 128 additions and 0 deletions
@ -0,0 +1,39 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="GtkKeyboardDevice.cs" company="Steven Kirk">
|
|||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
namespace Perspex.Gtk |
|||
{ |
|||
using Perspex.Input; |
|||
|
|||
public class GtkKeyboardDevice : KeyboardDevice |
|||
{ |
|||
private static GtkKeyboardDevice instance; |
|||
|
|||
static GtkKeyboardDevice() |
|||
{ |
|||
instance = new GtkKeyboardDevice(); |
|||
} |
|||
|
|||
private GtkKeyboardDevice() |
|||
{ |
|||
} |
|||
|
|||
public static GtkKeyboardDevice Instance |
|||
{ |
|||
get { return instance; } |
|||
} |
|||
|
|||
public override ModifierKeys Modifiers |
|||
{ |
|||
get { throw new System.NotImplementedException(); } |
|||
} |
|||
|
|||
public static Perspex.Input.Key ConvertKey(Gdk.Key key) |
|||
{ |
|||
return Key.X; |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,34 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="GtkMouseDevice.cs" company="Steven Kirk">
|
|||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
namespace Perspex.Gtk |
|||
{ |
|||
using Perspex.Input; |
|||
|
|||
public class GtkMouseDevice : MouseDevice |
|||
{ |
|||
private static GtkMouseDevice instance; |
|||
|
|||
static GtkMouseDevice() |
|||
{ |
|||
instance = new GtkMouseDevice(); |
|||
} |
|||
|
|||
private GtkMouseDevice() |
|||
{ |
|||
} |
|||
|
|||
public static GtkMouseDevice Instance |
|||
{ |
|||
get { return instance; } |
|||
} |
|||
|
|||
protected override Point GetClientPosition() |
|||
{ |
|||
throw new System.NotImplementedException(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue