make some projects compatible with netframework4.8 again
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using Pilz.Win32.Native;
|
||||
using Pilz.Win32.Native;
|
||||
using Keys = System.Windows.Forms.Keys;
|
||||
|
||||
namespace Pilz.Win32.Mapped;
|
||||
@@ -11,7 +9,7 @@ public class Keyboard
|
||||
|
||||
public static bool IsKeyDown(int keyCode)
|
||||
{
|
||||
return Conversions.ToDouble(User32.GetKeyState(keyCode).ToString() + 0x8000) < 0d;
|
||||
return Convert.ToDouble(User32.GetKeyState(keyCode).ToString() + 0x8000) < 0d;
|
||||
}
|
||||
|
||||
public static bool IsKeyDown(Keys keyCode)
|
||||
|
||||
Reference in New Issue
Block a user