blob: 1c0ca3df51bfe55f18bdd3f4d90abd72ed51af84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using MonoGame.Extended.ViewportAdapters;
namespace MonoGame.Extended.Input.InputListeners
{
public class MouseListenerSettings : InputListenerSettings<MouseListener>
{
public MouseListenerSettings()
{
// initial values are windows defaults
DoubleClickMilliseconds = 500;
DragThreshold = 2;
}
public int DragThreshold { get; set; }
public int DoubleClickMilliseconds { get; set; }
public ViewportAdapter ViewportAdapter { get; set; }
public override MouseListener CreateListener()
{
return new MouseListener(this);
}
}
}
|