		if (gp.axes[0] && gp.axes[0] < -threshold) pico8_buttons[i] |= 0x1;
				if (gp.axes[0] && gp.axes[0] > threshold) pico8_buttons[i] |= 0x2;
				if (gp.axes[1] && gp.axes[1] < -threshold) pico8_buttons[i] |= 0x4;
				if (gp.axes[1] && gp.axes[1] > threshold) pico8_buttons[i] |= 0x8;

				// buttons: first 4 are O/X; (almost) everything else taken to be menu button
				// ref: https://w3c.github.io/gamepad/#remapping (er.. that mapping doesn't agree with xbox, buffalo snes)
				for (j = 0; j < gp.buttons.len