public interface MdxController<T extends MdxControllerListener>
extends com.badlogic.gdx.controllers.ControllerListener
Modifier and Type | Method and Description |
---|---|
void |
addListener(int index,
T listener)
Inserts a listener at the specified index to the controller
|
void |
addListener(T listener)
Adds a listener to the controller
|
void |
clearListeners()
Removes all listeners from this controller
|
ControllerType |
getControllerType()
Returns the
ControllerType for this controller |
T |
getListener(int index)
Gets the listener at the specified index for this controller
|
int |
getTotalListeners()
Returns the total number of listeners for this controller
|
void |
removeListener(int index)
Removes a listener at the specified index from this controller
|
void |
removeListener(T listener)
Removes a listener from this controller
|
ControllerType getControllerType()
ControllerType
for this controllerControllerType.UNKNOWN
if the controller is unknownvoid addListener(int index, T listener)
index
- The index to insert the listener atlistener
- The listener to insertvoid addListener(T listener)
listener
- The listener to addvoid removeListener(int index)
index
- The index to removevoid removeListener(T listener)
listener
- The listener to removeT getListener(int index)
index
- The index to returnint getTotalListeners()
void clearListeners()