Skip to content

Instantly share code, notes, and snippets.

View liquidev's full-sized avatar

riki liquidev

View GitHub Profile
@liquidev
liquidev / sdl2.nim
Last active October 16, 2019 16:56
Nimterop SDL2 wrapper
## An SDL2 wrapper using nimterop.
import os
import nimterop/build
import nimterop/cimport
const
Base = getProjectCacheDir("sdl2")
@liquidev
liquidev / compiling.md
Last active December 8, 2019 21:07
Turn your joypad to a mouse
cc jm.c -lxdo -lSDL2 -lm -o jm -O3
./jm

Only tested with an Xbox 360 Wireless Controller.

Default bindings:

  • Left joystick - move cursor
  • Right joystick - scroll
  • A - left click
@liquidev
liquidev / list.md
Last active July 9, 2020 12:15
Programming resources