Tag Info

New answers tagged


LibGDX handles touch pad taps as ordinary clicks. I own an Apple laptop (and only mention this due to their good touch pads). I used the following method. glfwSetMouseButtonCallback(window, mouse_button_callback); // At the start private final GLFWMouseButtonCallback mouse_button_callback = new GLFWMouseButtonCallback() { @Override public void ...


//.h int touchCount = 0; //.cpp auto listener = EventListenerTouchAllAtOnce::create(); listener->onTouchesBegan = CC_CALLBACK_2(HelloWorld::onTouchesBegan, this); listener->onTouchesEnded = CC_CALLBACK_2(HelloWorld::onTouchesEnded, this); void HelloWorld::onTouchesBegan(cocos2d::Touch *touch, cocos2d::Event *event) { touchCount++; CCLOG("Multi-touch ...

Top 50 recent answers are included