A handler for buttons to share touches when they share a parent Shouldn’t be messed with usually unless you are manually registering
Class SharedButtonHandler
#include <Geode/ui/Button.hpp>classSharedButtonHandler{ ... }
Examples0
Public static methods2
staticgeode::SharedButtonHandler*get()
No description provided
staticboolcontainsTouch(geode::Button*button,cocos2d::CCTouch*touch)
Returns true if the touch is within the button’s rect (multiplied by the touch multiplier)
Public member functions6
voidregisterButton(geode::Button*button)
Register a button to share touches with (must be called in onEnter)
voidunregisterButton(geode::Button*button)
Unregister a button (must be called in onExit)
voidpassMoveToButtons(geode::Button*button,cocos2d::CCTouch*touch)
Pass moves from ccTouchMoved to all buttons sharing a parent
voidpassActivateToButtons()
Pass click activate from one button to the active one
voidpassCancelledToButtons()
Pass click cancelled from one button to the active one
voidsetActiveButton(geode::Button*button)
Set an active button (should be called in ccTouchBegan)