cleanup InputState::direction

This commit is contained in:
Corentin Jabot 2021-10-06 11:16:32 +02:00
parent 7acca317ef
commit 1e219e7695

View file

@ -14,14 +14,13 @@ public:
Direction direction() const { Direction direction() const {
if (left) if (left)
return Direction::LEFT; return Direction::LEFT;
else if (right) if (right)
return Direction::RIGHT; return Direction::RIGHT;
else if (up) if (up)
return Direction::UP; return Direction::UP;
else if (down) if (down)
return Direction::DOWN; return Direction::DOWN;
else return Direction::NONE;
return Direction::NONE;
} }
}; };