Home

Awesome

#InputMacro

######a simple macro-based system for JSON-based, remappable input handling

Dependencies: requires Luxe for input handling and codes, but can be easily changed for other frameworks

Usage:

{
	"actions": [
		{
			"name": "playerleft",
			"codes": ["key_a", "left"] //codes are by the name they have in 'snow.input.Keycodes'
		},
		{
			"name": "playerright",
			"codes": ["key_d", "right"]
		},
		{
			"name": "playerup",
			"codes": ["key_w", "up"]
		},
		{
			"name": "playerdown",
			"codes": ["key_s", "down"]
		},
		{
			"name": "playerjump",
			"codes": ["space"]
		}
	]
}