Added basic android gamepad support (#97)

This commit is contained in:
saschawillems 2016-03-20 21:46:49 +01:00
parent bc71f44c75
commit d7bbb0c7a2
3 changed files with 62 additions and 0 deletions

View file

@ -927,6 +927,7 @@ int main(const int argc, const char *argv[])
// Attach vulkan example to global android application state
state->userData = vulkanExample;
state->onAppCmd = VulkanExample::handleAppCommand;
state->onInputEvent = VulkanExample::handleAppInput;
vulkanExample->androidApp = state;
#elif defined(__linux__)
vulkanExample->setupWindow();