Skip to content

Instantly share code, notes, and snippets.

@savetheclocktower
savetheclocktower / joystick-type
Last active March 5, 2024 18:52
ServoStiks & RetroPie
#!/usr/bin/env ruby
require 'io/console'
require 'json'
require 'optparse'
require 'pathname'
$opts = OptionParser.new do |opts|
opts.banner = "Usage: joystick-type [options] system game\nReturns the type of joystick for the given system and game."
opts.separator ""