Mod 0.5.1: F8 entfernt, automatisch neu verbinden; Releases ueber Gitea
Verbunden wird nur beim Start ueber die Lobby, bricht die Verbindung ab alle 10 s neu (nicht nach Ablehnung oder Konto-Problem). release.ps1 legt jetzt Gitea-Releases mit bso-release.json an. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,17 +3,17 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace BSO
|
||||
{
|
||||
/// <summary>Tasten der Mod (F8-F11): "gerade gedrueckt" erkennen, nur wenn das Spielfenster vorne ist.</summary>
|
||||
/// <summary>Tasten der Mod (F9-F11): "gerade gedrueckt" erkennen, nur wenn das Spielfenster vorne ist.</summary>
|
||||
public static class Input
|
||||
{
|
||||
[DllImport("user32.dll")] static extern short GetAsyncKeyState(int key);
|
||||
[DllImport("user32.dll")] static extern nint GetForegroundWindow();
|
||||
[DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(nint window, out uint process);
|
||||
|
||||
public const int F8 = 0x77, F9 = 0x78, F10 = 0x79, F11 = 0x7A;
|
||||
public const int F9 = 0x78, F10 = 0x79, F11 = 0x7A;
|
||||
|
||||
static readonly bool[] down = new bool[256], pressed = new bool[256];
|
||||
static readonly int[] watched = { F8, F9, F10, F11 };
|
||||
static readonly int[] watched = { F9, F10, F11 };
|
||||
|
||||
/// <summary>Einmal pro Bild vor allen Pressed-Abfragen.</summary>
|
||||
public static void Update()
|
||||
|
||||
Reference in New Issue
Block a user