Commit Graph

9 Commits

Author SHA1 Message Date
Deve
29e4d4a0bc Fixed memory corruption in case of gamepads with large buttons count.
SEvent::SJoystickEvent::NUMBER_OF_BUTTONS is a constant value and is equal to 32. In practice we don't expect any gamepad that has over 32 buttons. However some wireless mices are incorrectly detected as gamepads and they report for example 69 available buttons. Just resize m_buttonPressed array to be equal to the reported buttons count.
2016-04-10 01:22:39 +02:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
hiker
4986deebd6 Removed number of axes and buttons from GamepadDevice, and use the
values from GamepadConfig instead.
2014-10-31 08:16:15 +11:00
hiker
29f5b14e45 More refactoring. Created factory for DeviceConfigs. 2014-10-29 08:22:25 +11:00
hiker
92196c7534 Made processAndMapInput a pure virtual function of InputDevice, which
is implemented in Keyboard- and GamepadDevice.
2014-10-28 17:04:00 +11:00
hiker
a0b7b1003d More work on refactoring input devices (still wip). 2014-10-28 10:14:04 +11:00
hiker
b66fb2e56b Removed unnecessary parameter for gamepads in processAndMapInput,
started a common virtual function for processAndMapInput. Removed
unnecessary #includes, cosmetic changes.
2014-10-28 09:00:22 +11:00
hiker
99f69f4070 Moved KeyboardConfig and GamepadConfig from DeviceConfig to their
own separate files.
2014-10-27 13:26:52 +11:00
hiker
ec908d85c6 Split GamepadDevice and KeyboarDevice from input_device into their
own files. Renamed InputManager::getDeviceList() to getDeviceManager().
2014-10-25 23:09:00 +11:00