cleanup InputState::direction
This commit is contained in:
parent
7acca317ef
commit
1e219e7695
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue