Skip to content

Instantly share code, notes, and snippets.

View umbertomarotta's full-sized avatar

Umberto Marotta umbertomarotta

  • Turin, Italy
  • 21:50 (UTC +01:00)
View GitHub Profile
@umbertomarotta
umbertomarotta / input.cpp
Last active February 3, 2025 15:07
Fix Stick Circularity
static void
x360_update_state(gamepad_context_t &gamepad, const gamepad_state_t &gamepad_state) {
auto &report = gamepad.report.x360;
report.wButtons = x360_buttons(gamepad_state);
report.bLeftTrigger = gamepad_state.lt;
report.bRightTrigger = gamepad_state.rt;
if (gamepad_state.lsX == 0 or gamepad_state.lsY == 0) {
report.sThumbLX = gamepad_state.lsX;
@umbertomarotta
umbertomarotta / README.md
Last active March 7, 2019 13:11 — forked from bburky/README.md
Get Steam Cover Images Playnite Extension

Get Steam Cover Images Playnite Extension

Replaces the cover image of the selected games with the Steam header image for the game. If the game is not a Steam game, the game's links will be parsed for a Steam store link to guess the game's AppID.

Setting game's covers to an internet URL may be slow to load, so enabling "Asynchronous image loading" in Playnite's settings is suggested.

I recommend first running "Tools" → "Download Metadata" with "Only download metadata for games missing them" unchecked and select only:

  • Cover Image "Offical Store > IGDB"
  • Links "IGDB > Offical Store"