| 238 | } |
| 239 | |
| 240 | InputManager::~InputManager() |
| 241 | { |
| 242 | for (u8 i = 0; i < CROWN_MAX_JOYPADS; ++i) |
| 243 | input_device::destroy(*_allocator, *_joypad[i]); |
| 244 | |
| 245 | input_device::destroy(*_allocator, *_touch); |
| 246 | input_device::destroy(*_allocator, *_mouse); |
| 247 | input_device::destroy(*_allocator, *_keyboard); |
| 248 | } |
| 249 | |
| 250 | InputDevice *InputManager::device_from_type(u16 type, u16 num) |
| 251 | { |