Add mozc-dial nine dial edition.

Co-authored-by: Takashi Toyoshima <toyoshim@google.com>
Co-authored-by: Shun Ikejima <ikejima@google.com>
This commit is contained in:
Shun Ikejima
2025-10-28 18:19:10 +09:00
parent 1775d344f1
commit 994d22bb71
76 changed files with 810960 additions and 7327 deletions

View File

@@ -13,7 +13,8 @@
class MotorController final {
public:
enum class Mode { k1Motor, k9Motor };
explicit MotorController(Mode = Mode::k9Motor);
enum class Direction { kForward, kBackward };
explicit MotorController(Mode = Mode::k9Motor, Direction = Direction::kForward);
MotorController(const MotorController&) = delete;
MotorController& operator=(const MotorController&) = delete;
~MotorController();
@@ -33,6 +34,7 @@ class MotorController final {
bool started_[kNumOfMotors] = { false };
uint8_t phase_ = 0;
repeating_timer timer_;
Direction direction_ = Direction::kForward;
};
#endif // COMMON_MOTOR_CONTROLLER_H_