=== TYTUL / TITLE ===
WoT Pedal Accessibility Driver — sterowanie pedalami G29 (dostepnosc)

=== TAGI / TAGS ===
accessibility, controller, input, assistive-tech, logitech, g29, pedals

=== OPIS PL ===
Narzedzie wspomagajace (assistive tech) dla graczy z niepelnosprawnoscia
ruchowa. Pozwala sterowac ruchem czolgu (przod / tyl / skret) w World of
Tanks za pomoca pedalow juz posiadanej kierownicy Logitech G29, zamiast
klawiatury — dzieki temu sprawna reka moze przez caly czas pozostac na
myszce do celowania i strzelania.

Jak dziala:
- Czyta standardowe raporty USB HID z juz podlaczonego, komercyjnie
  dostepnego zestawu kierownicy+pedalow. Nie modyfikuje sterownikow ani
  kalibracji urzadzenia — inne gry dzialaja z kierownica bez zmian.
- Pozycja pedalu jest tlumaczona 1:1 na standardowe klawisze (W/A/S/D)
  przez systemowe Win32 SendInput — dokladnie ten sam mechanizm co
  legalne, komercyjne programy do remapowania (AntiMicroX, reWASD,
  Steam Input, JoyToKey).
- Dziala WYLACZNIE gdy WorldOfTanks.exe jest oknem pierwszego planu.
- Startuje automatycznie z gra i konczy dzialanie po jej zamknieciu.

Czego NIE robi:
- Nie czyta/modyfikuje pamieci procesu gry, nie modyfikuje plikow gry.
- Nie automatyzuje celowania ani strzelania — to w 100% recznie, mysza.
- Zero przewagi informacyjnej/celnosciowej/czasowej — to wylacznie
  alternatywna metoda wprowadzania danych (input method).

Kod jest jawnym, czytelnym skryptem PowerShell (bez obfuskacji),
uruchamianym przez standardowe Zadanie Harmonogramu Windows.

=== DESCRIPTION EN ===
Assistive technology for players with physical disabilities. Lets them
control tank movement (forward / reverse / turning) in World of Tanks
using the pedals of their existing Logitech G29 wheel instead of the
keyboard, so their one working hand can stay on the mouse for aiming
and firing at all times.

How it works:
- Reads standard USB HID reports directly from an already-connected,
  commercially available wheel+pedal set. No modification of the
  device's drivers or calibration — other games work with the wheel
  exactly as before.
- Pedal position is translated 1:1 into standard key presses (W/A/S/D)
  via the Win32 SendInput API — the same mechanism used by common,
  legal, commercial remapping tools (AntiMicroX, reWASD, Steam Input,
  JoyToKey).
- Only active while WorldOfTanks.exe is the foreground window.
- Starts automatically with the game, releases all keys and stops the
  moment the game closes.

What it does NOT do:
- Does not read or modify game process memory, does not modify game
  files.
- Does not automate aiming or firing — that stays 100% manual, via
  mouse.
- Zero informational, aiming, or timing advantage — it is purely an
  alternative input method.

The code is a plain, human-readable PowerShell script (no obfuscation),
run via a standard Windows Task Scheduler task.

=== JAK ZAINSTALOWAC / INSTALLATION (PL) ===
1. Pobierz plik wot-pedal-driver.ps1 i skopiuj go do:
   C:\Users\Public\wot-pedal-driver.ps1
2. Otworz Harmonogram Zadan Windows (Task Scheduler) -> Utworz zadanie
   podstawowe (Create Basic Task):
   - Nazwa: WoTPedalDriver
   - Wyzwalacz: przy logowaniu (At log on) — LUB recznie przed gra
   - Akcja: Uruchom program:
       Program/skrypt:  powershell.exe
       Argumenty:       -ExecutionPolicy Bypass -File "C:\Users\Public\wot-pedal-driver.ps1"
3. (Opcjonalnie) W ustawieniach zadania odznacz "Uruchamiaj tylko gdy
   uzytkownik jest zalogowany" jesli chcesz autostart w tle bez okna.
4. Skrypt sam wykrywa uruchomienie WorldOfTanks.exe — nie trzeba nic
   dodatkowo klikac w grze. Dziala tylko gdy gra jest oknem aktywnym.
5. Wymagania: podlaczona kierownica/pedaly Logitech G29 (sterowniki
   Logitech G HUB zainstalowane jak zwykle), Windows PowerShell 5.1+
   (wbudowany w Windows 10/11).
6. Deinstalacja: usun zadanie "WoTPedalDriver" z Harmonogramu Zadan i
   skasuj plik C:\Users\Public\wot-pedal-driver.ps1.

=== INSTALLATION (EN) ===
1. Download wot-pedal-driver.ps1 and copy it to:
   C:\Users\Public\wot-pedal-driver.ps1
2. Open Windows Task Scheduler -> Create Basic Task:
   - Name: WoTPedalDriver
   - Trigger: At log on — OR run it manually before launching the game
   - Action: Start a program:
       Program/script:  powershell.exe
       Arguments:       -ExecutionPolicy Bypass -File "C:\Users\Public\wot-pedal-driver.ps1"
3. (Optional) Uncheck "Run only when user is logged on" if you want
   silent background autostart.
4. The script auto-detects WorldOfTanks.exe on its own — nothing extra
   to click in-game. It only acts while the game is the foreground
   window.
5. Requirements: a connected Logitech G29 wheel/pedal set (Logitech G
   HUB drivers installed as usual), Windows PowerShell 5.1+ (built into
   Windows 10/11).
6. Uninstall: remove the "WoTPedalDriver" task from Task Scheduler and
   delete C:\Users\Public\wot-pedal-driver.ps1.

=== PLIK DO WRZUCENIA ===
pliki-moda/wot-pedal-driver.ps1

=== PO WRZUCENIU ===
Usun ten caly folder z pulpitu (jednorazowy, nie trzymamy tu danych na stale).
