2014-03-28 02:50:40 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using DS4Library;
|
|
|
|
|
namespace DS4Control
|
|
|
|
|
{
|
|
|
|
|
public class MouseCursorOnly : ITouchpadBehaviour
|
|
|
|
|
{
|
|
|
|
|
private int deviceNum;
|
2014-03-29 06:29:08 +01:00
|
|
|
|
private readonly MouseCursor cursor;
|
|
|
|
|
private readonly MouseWheel wheel;
|
|
|
|
|
|
2014-03-28 02:50:40 +01:00
|
|
|
|
public MouseCursorOnly(int deviceID)
|
|
|
|
|
{
|
|
|
|
|
deviceNum = deviceID;
|
2014-03-29 06:29:08 +01:00
|
|
|
|
cursor = new MouseCursor(deviceNum);
|
|
|
|
|
wheel = new MouseWheel(deviceNum);
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return "Cursor Mode";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void touchesMoved(object sender, TouchpadEventArgs arg)
|
|
|
|
|
{
|
2014-03-29 06:29:08 +01:00
|
|
|
|
cursor.touchesMoved(arg);
|
|
|
|
|
wheel.touchesMoved(arg);
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-03-29 06:29:08 +01:00
|
|
|
|
public void touchesBegan(object sender, TouchpadEventArgs arg)
|
|
|
|
|
{
|
|
|
|
|
cursor.touchesBegan(arg);
|
|
|
|
|
wheel.touchesBegan(arg);
|
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
|
|
|
|
|
public void touchesEnded(object sender, TouchpadEventArgs arg) { }
|
|
|
|
|
|
|
|
|
|
public void touchButtonUp(object sender, TouchpadEventArgs arg) { }
|
|
|
|
|
|
|
|
|
|
public void touchButtonDown(object sender, TouchpadEventArgs arg) { }
|
|
|
|
|
|
2014-03-29 06:29:08 +01:00
|
|
|
|
public void touchUnchanged(object sender, EventArgs unused) { }
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
}
|