Gamepads
This page describes input bindings for gamepads, how to add and modify them, and lists mappings for different gamepad controllers.
Axis and Buttons
GamepadClickBehaviour
val toggleProteins = object : GamepadClickBehaviour {
override fun click(p0: Int, p1: Int) {
// finds the currently active protein, un-highlights it
activeProtein.children.forEach {
if(it is BoundingGrid) {
it.gridColor = Vector3f(0.0f, 0.0f, 0.0f)
}
}
// selects the new active protein
activeProtein = if(activeProtein.name == "2zzm") {
scene.find("4yvj") as Mesh
} else {
scene.find("2zzm") as Mesh
}
// highlights the newly active protein
activeProtein.children.forEach {
if(it is BoundingGrid) {
it.gridColor = Vector3f(1.0f, 0.0f, 0.0f)
}
}
}
}GamepadMovementControl and GamepadRotationControl
Button Mappings
Xbox/Xbox One Wireless Controller
Last updated
Was this helpful?