jkuhlmann / gainput

Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
http://gainput.johanneskuhlmann.de/
MIT License
858 stars 103 forks source link

Error in compilation for android #31

Closed vinod-mv closed 7 years ago

vinod-mv commented 7 years ago

Hi, When trying to compile the source for android using instructions in the Readme, I encountered the following error:

"/lib/source/gainput/touch/GainputInputDeviceTouch.cpp:32:6: error: 'variant' was not declared in this scope"

I got it compiled by changing the line:

InputDeviceTouch::InputDeviceTouch(InputManager& manager, DeviceId device, unsigned index, DeviceVariant /variant/) :

to:

InputDeviceTouch::InputDeviceTouch(InputManager& manager, DeviceId device, unsigned index, DeviceVariant variant) :

Am I right to uncomment variant?

MrCapone commented 7 years ago

Yes, this variable must be uncomment for iOS and android. You can create pull request with this fix.

jkuhlmann commented 7 years ago

Sorry, it's fixed on the master branch now.