Uses of Enum Class
org.openpatch.scratch.KeyCode
Packages that use KeyCode
Package
Description
The org.openpatch.scratch package contains classes that provide an API for creating Scratch-like
projects in Java.
-
Uses of KeyCode in org.openpatch.scratch
Subclasses with type arguments of type KeyCode in org.openpatch.scratchMethods in org.openpatch.scratch that return KeyCodeModifier and TypeMethodDescriptionstatic KeyCodeKeyCode.fromCode(int code) static KeyCodeReturns the enum constant of this class with the specified name.static KeyCode[]KeyCode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.openpatch.scratch with parameters of type KeyCodeModifier and TypeMethodDescriptionbooleanSprite.isKeyPressed(KeyCode keyCode) Returns true if the key is pressedbooleanStage.isKeyPressed(KeyCode keyCode) Returns true if the key is pressedvoidSprite.whenKeyPressed(KeyCode keyCode) This method is called when a key is pressed.voidStage.whenKeyPressed(KeyCode keyCode) This method is called when a key is pressed.voidSprite.whenKeyReleased(KeyCode keyCode) This method is called when a key is released.voidStage.whenKeyReleased(KeyCode keyCode) This method is called when a key is released.