Class SharedButtonHandler

#include <Geode/ui/Button.hpp>
classSharedButtonHandler{ ... }

A handler for buttons to share touches when they share a parent Shouldn’t be messed with usually unless you are manually registering

Examples0
Public static methods2
staticgeode::SharedButtonHandler*get()
No description provided
staticboolcontainsTouch(,)

Returns true if the touch is within the button’s rect (multiplied by the touch multiplier)

Public member functions6
voidregisterButton()

Register a button to share touches with (must be called in onEnter)

voidunregisterButton()

Unregister a button (must be called in onExit)

voidpassMoveToButtons(,)

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()

Set an active button (should be called in ccTouchBegan)

Fields0
Protected member functions0
Protected fields0
Derived classes0