gth; j++)
				if (gp.buttons[j].value > 0 || gp.buttons[j].pressed)
				{
					if (j < 4)
						pico8_buttons[i] |= (0x10 << (((j+1)/2)&1)); // 0 1 1 0 0 1 -- A,X are O,X on xbox controller
					else
					{
						if (j >= 6 && j <= 8) // PICO-8 0.2.0g: seems usually 6,7,8 are menu buttons (?) // others might be easy to accidentally bump
							pico8_buttons[0] |= 0x40; // menu button
					}
				}
			}
		}

		requestAnimationFrame(p8_update_gamepads);
	}
	requestAnimationFrame(p8_update_gamepads);

	// key b