2
3
-- usual functions to check on the status of buttons; you can also inspect other
3
4
-- controls, like analog joysticks, by checking properties like <axes> and <hats>.
5
7
-- Normally, gamepad buttons are indexed by number. This class also adds virtual buttons
6
8
-- named 'left', 'right', 'up', 'down'. This consults the first two analog axes