This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void drawTextColor(LCDBitmap* BitmapContext, LCDFont *font, const void* text, size_t len, PDStringEncoding encoding, int x, int y, LCDColor color, bool inverted) | |
{ | |
//grab width & height of our to be rendered text | |
pd->graphics->pushContext(BitmapContext); | |
int h = pd->graphics->getFontHeight(font); | |
pd->graphics->setFont(font); | |
int w = pd->graphics->getTextWidth(font, text, len, encoding, 0); | |
//create new bitmap and fillrect with our color / pattern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
RunWait, TaskKill.exe /F /IM EpicGamesLauncher.exe | |
Run, "com.epicgames.launcher://apps/56a31432931740cdb0112d237d7d65aa?action=launch&silent=true" | |
Process, Wait, PinballFX-Win64-Shipping.exe | |
Process, WaitClose, PinballFX-Win64-Shipping.exe | |
RunWait, TaskKill.exe /F /IM EpicGamesLauncher.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance Ignore | |
;get xinput.ahk from https://www.autohotkey.com/board/topic/35848-xinput-xbox-360-controller-api/ | |
#include xinput.ahk | |
XInput_Init() | |
Loop { | |
Loop, 4 { | |
if State := XInput_GetState(A_Index-1) { | |
BACK := State.wButtons & XINPUT_GAMEPAD_BACK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$repourl = "https://arduboy.ried.cl/repo.json" | |
$romsdir = "./arduboy/roms" | |
$mediadir = "./arduboy/screenshots" | |
#emulation station destkop editon gamelist | |
$gameslist = "./arduboy/gamelist.xml" | |
if (!(Test-Path -Path $romsdir)) | |
{ | |
New-Item -ItemType Directory $romsdir | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$repourl = "https://arduboy.ried.cl/repo.json" | |
$romsdir = "./arduboy/roms" | |
$mediadir = "./arduboy/screenshots" | |
#emulation station destkop editon gamelist | |
$gameslist = "./arduboy/gamelist.xml" | |
if (!(Test-Path -Path $romsdir)) | |
{ | |
New-Item -ItemType Directory $romsdir | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance Ignore | |
while (true) | |
{ | |
;back + start -> quit active window | |
if ((getKeyState("joy7") && getKeyState("Joy8")) || (getKeyState("2joy7") && getKeyState("2Joy8")) || (getKeyState("3joy7") && getKeyState("3Joy8"))) | |
{ | |
WinClose A | |
sleep 900 | |
} | |
;back + right stick click -> send esc |