+import Carbon.HIToolbox
+
 final class InputController {
 
 	let eventsController: EventsController

			.circle: buttonAction(.circle)
		]

		eventsController.deviceConfiguration = DeviceConfiguration(
			buttonsMapTable: buttonActions,
			dPadMapTable: [:],
			keyboardMapTable: [:]
		)
	}


	init(_ eventsController: EventsController) {
		self.eventsController = eventsController

		let buttonAction: (DSButton) -> DeviceAction = { button in
			return DeviceAction { pressed in
				if pressed {
					self.buttonsState |= 1 << button.rawValue
				} else {
