|
Drag[en]gine Script Module DragonScript 1.32.1
|
Analog movement forward/backward. More...
Public Member Functions | |
| void | analogAbsolute (BAAMovement action, float value) |
| Absolute input device axis position changed. | |
| void | analogRelative (BAAMovement action, float value) |
| Relative input device axis position changed. | |
| AnalogMoveFB | new (ECBehaviorPlayerControllable.Tracker tracker) |
| AnalogMoveFB | new (ECBehaviorPlayerControllable.Tracker tracker, String name) |
Public Member Functions inherited from Dragengine.Commands.CommandsBAAMovement.Base | |
| void | analogAbsolute (float value) |
| Absolute input device axis position changed. | |
| void | analogRelative (float value) |
| Relative input device axis position changed. | |
| Base | new (ECBehaviorPlayerControllable.Tracker tracker, String name, String description) |
| void | start () |
| Input device key or button has been pressed. | |
| void | start (BAAMovement action) |
| Start command on action. | |
| void | stop () |
| Input device key or button has been released. | |
| void | stop (BAAMovement action) |
| Start command on action. | |
Public Member Functions inherited from Dragengine.Commands.Command | |
| void | approach () |
| User finger approached device button. | |
| String | getDescription () |
| Description. | |
| String | getDisplayName () |
| Display name or null. | |
| String | getName () |
| Unique name. | |
| String | getTranslateDescription () |
| Translation description or null. | |
| String | getTranslateDisplayName () |
| Translation display name or null. | |
| Command | new () |
| Create command. | |
| Command | new (String name, String description) |
| Create command. | |
| void | pulse () |
| Convenience method calling start() and stop() in succession. | |
| void | setDescription (String description) |
| Set description. | |
| void | setDisplayName (String displayName) |
| Set display name or null. | |
| void | setName (String name) |
| Set unique name of the command. | |
| void | setTranslateDescription (String translateName) |
| Set translate description or null. | |
| void | setTranslateDisplayName (String translateName) |
| Set translate display name or null. | |
| void | touch () |
| Input device button has been touched. | |
| String | translateDescription () |
| Translated command description using default TranslationManager. | |
| String | translateDescription (TranslationManager translationManager) |
| Translated command description. | |
| String | translateDisplayName () |
| Translated display name using default TranslationManager. | |
| String | translateDisplayName (TranslationManager translationManager) |
| Translated display name. | |
| void | untouch () |
| Input device button has been untouched. | |
| void | withdraw () |
| User finger withdrew from device button. | |
Additional Inherited Members | |
Public Attributes inherited from Dragengine.Commands.CommandsBAAMovement.Base | |
| ECBehaviorPlayerControllable.Tracker | pTracker |
Public Attributes inherited from Dragengine.Commands.Command | |
| String | pName |
Protected Member Functions inherited from Dragengine.Commands.CommandsBAAMovement.Base | |
| BAAMovement | getMovement () |
| ECBehaviorPlayerControllable.Tracker | getTracker () |
Analog movement forward/backward.
| void Dragengine.Commands.CommandsBAAMovement.AnalogMoveFB.analogAbsolute | ( | BAAMovement | action, |
| float | value | ||
| ) |
Absolute input device axis position changed.
Axis keeps position until next event. Gamepad events typically send this method when the stick is pushed to a new position.
| value | New axis position in the range -1 to 1. |
Reimplemented from Dragengine.Commands.CommandsBAAMovement.Base.
| void Dragengine.Commands.CommandsBAAMovement.AnalogMoveFB.analogRelative | ( | BAAMovement | action, |
| float | value | ||
| ) |
Relative input device axis position changed.
Value is the change in the relative axis. It is reset to 0 right after sending the event. No event is sent for the reset. A typical device is mouse movement resulting in this method to be called.
| value | Relative axis position change in axis units. Caller is responsible to adjust the range to make different input devices match in magnitude. |
Reimplemented from Dragengine.Commands.CommandsBAAMovement.Base.
| AnalogMoveFB Dragengine.Commands.CommandsBAAMovement.AnalogMoveFB.new | ( | ECBehaviorPlayerControllable.Tracker | tracker | ) |
| AnalogMoveFB Dragengine.Commands.CommandsBAAMovement.AnalogMoveFB.new | ( | ECBehaviorPlayerControllable.Tracker | tracker, |
| String | name | ||
| ) |