Skip to content

Instantly share code, notes, and snippets.

var _ios_on_macos = false;
if (os_type == os_ios)
{
var _map = os_get_info();
if (_map != undefined)
{
_ios_on_macos = (string_pos("mac", string_lower(string(_map[? "hwModel"]))) > 0);
ds_map_destroy(_map)
}
}
Windows Registry Editor Version 5.00
; Windows registry changes for analogue triggers on Google Stadia controller via SergejKiller. Also, remaps right stick axes
; https://www.reddit.com/r/Stadia/comments/edqrd1/comment/hiaw1vi/
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_18D1&PID_9400\Axes]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_18D1&PID_9400\Axes\6]
"Attributes"=hex:00,00,00,00,02,00,c4,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_18D1&PID_9400\Axes\7]
"Attributes"=hex:00,00,00,00,02,00,c5,00

Gamepad Prompt Glyphs in Icon Fonts

Name Filename MD5 hash Version Source
Segoe MDL2 Assets SegMDL2.ttf d9b1005ee287d04bd367cd19ec91868e 1.60i Windows
Segoe Xbox MDL2 Assets segxbox2.ttf f47fdc32ce9b2e19a0faa16eeec4718f 1.28 Xbox Accessories App
Xbox Touch Controls XboxTouchControls.ttf 8addf8974337a5f333bada1f4809b493 1.008 Xbox Cloud App
NintendoExt003 nintendo_ext_003.ttf 9da1df5893c215405d30a331738567a4 1.35 SwitchOS
PSExChar psexchar.otf f09649e3edf5f8380c9f89e5873d3db0 1.000 VitaOS
PSCCIS+SIE `PSCCIS+SIE
@offalynne
offalynne / gms2_gamepad_db_composer.py
Last active March 29, 2024 16:40
GMS2 Gamepad DB Composer
#!/usr/bin/python
# GMS2 Gamepad DB Composer, @offalynne, 2021
# processes the SDL2 Community Gamepad Mapping DB for GMS2 compatibility
# run script and place the resulting gamecontrollerdb.txt in datafiles
import re
import os
import sys
import urllib.request
@offalynne
offalynne / canvascycle_gallery_bookmarklet.js
Created September 9, 2018 23:24
Bookmarklet for keyboard-navigable gallery view of `Canvas Cycle` by Mark Ferrari and Joseph Huckaby @ effectgames.com/demos/canvascycle