Connect a RotaryEncoderIf to the generic input subsystem. More...
Public Member Functions | |
| bool | is_connected (self) |
| Return whether the physical encoder is being monitored. | |
| None | connect (self) |
| Start receiving physical rotary encoder events. | |
| None | disconnect (self) |
| Stop receiving physical rotary encoder events. | |
| None | poll (self) |
| Perform implementation-specific encoder polling. | |
Protected Member Functions | |
| None | _rotated (self, int turns) |
| Forward signed encoder rotation as an InputEvent. | |
| None | _button_pressed (self) |
| Forward a physical encoder-button press. | |
| None | _button_released (self) |
| Forward a physical encoder-button release. | |
Connect a RotaryEncoderIf to the generic input subsystem.
| None input.rotary_encoder_input_adapter.RotaryEncoderInputAdapter.poll | ( | self | ) |
Perform implementation-specific encoder polling.
Callback-driven encoders may implement this as a no-op.