mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
Removed usage of some unused namespaces
The only real import one is remove System.Windows.Forms for non GUI items
This commit is contained in:
parent
1821658455
commit
3f68c9bcb8
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
public class DS4StateFieldMapping
|
||||
|
@ -1,14 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
class InputMethods
|
||||
{
|
||||
private static INPUT[] sendInputs = new INPUT[2]; // will allow for keyboard + mouse/tablet input within one SendInput call, or two mouse events
|
||||
private static object lockob = new object();
|
||||
|
||||
public static void MoveCursorBy(int x, int y)
|
||||
{
|
||||
lock (lockob)
|
||||
@ -43,6 +42,7 @@ namespace DS4Windows
|
||||
sendInputs[inputs].Data.Mouse.Y = 0;
|
||||
inputs++;
|
||||
}
|
||||
|
||||
if (horizontal != 0)
|
||||
{
|
||||
sendInputs[inputs].Type = INPUT_MOUSE;
|
||||
@ -54,6 +54,7 @@ namespace DS4Windows
|
||||
sendInputs[inputs].Data.Mouse.Y = 0;
|
||||
inputs++;
|
||||
}
|
||||
|
||||
SendInput(inputs, sendInputs, (int)inputs * Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
}
|
||||
@ -276,6 +277,7 @@ namespace DS4Windows
|
||||
private static extern ushort MapVirtualKey(uint uCode, uint uMapType);
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
|
||||
|
||||
//Not used, just here
|
||||
public static void DownKeys(ushort key)
|
||||
{
|
||||
@ -292,5 +294,5 @@ namespace DS4Windows
|
||||
keybd_event((byte)key, 0, (int)KEYEVENTF_KEYUP, 0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
|
@ -1,12 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Diagnostics;
|
||||
using static DS4Windows.Global;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
public class Mapping
|
||||
|
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
class MouseCursor
|
||||
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
class MouseWheel
|
||||
|
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
|
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
@ -8,6 +7,7 @@ using System.Xml;
|
||||
using System.Drawing;
|
||||
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
[Flags]
|
||||
|
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
|
@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
using DS4Windows.DS4Library.CoreAudio;
|
||||
|
||||
namespace DS4Windows.DS4Library
|
||||
|
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
|
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
|
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
public class DS4StateExposed
|
||||
|
@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace DS4Windows
|
||||
{
|
||||
public class TouchpadEventArgs : EventArgs
|
||||
|
Loading…
Reference in New Issue
Block a user