|
@@ -7,30 +7,50 @@ using sf::Keyboard;
|
|
|
|
|
|
|
|
bool INPUT::key_a()
|
|
bool INPUT::key_a()
|
|
|
{
|
|
{
|
|
|
- return window.hasFocus() && Keyboard::isKeyPressed(Keyboard::Return);
|
|
|
|
|
|
|
+ return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::W) || Keyboard::isKeyPressed(Keyboard::Z));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool INPUT::key_b()
|
|
bool INPUT::key_b()
|
|
|
{
|
|
{
|
|
|
- return window.hasFocus() && Keyboard::isKeyPressed(Keyboard::BackSpace);
|
|
|
|
|
|
|
+ return window.hasFocus() && Keyboard::isKeyPressed(Keyboard::X);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool INPUT::key_l()
|
|
|
|
|
+{
|
|
|
|
|
+ return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::Q) || Keyboard::isKeyPressed(Keyboard::A));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool INPUT::key_r()
|
|
|
|
|
+{
|
|
|
|
|
+ return window.hasFocus() && Keyboard::isKeyPressed(Keyboard::S);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool INPUT::key_up()
|
|
bool INPUT::key_up()
|
|
|
{
|
|
{
|
|
|
- return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::W) || Keyboard::isKeyPressed(Keyboard::Up));
|
|
|
|
|
|
|
+ return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::Up));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool INPUT::key_down()
|
|
bool INPUT::key_down()
|
|
|
{
|
|
{
|
|
|
- return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::S) || Keyboard::isKeyPressed(Keyboard::Down));
|
|
|
|
|
|
|
+ return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::Down));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool INPUT::key_left()
|
|
bool INPUT::key_left()
|
|
|
{
|
|
{
|
|
|
- return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::A) || Keyboard::isKeyPressed(Keyboard::Left));
|
|
|
|
|
|
|
+ return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::Left));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool INPUT::key_right()
|
|
bool INPUT::key_right()
|
|
|
{
|
|
{
|
|
|
- return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::D) || Keyboard::isKeyPressed(Keyboard::Right));
|
|
|
|
|
|
|
+ return window.hasFocus() && (Keyboard::isKeyPressed(Keyboard::Right));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool INPUT::key_start()
|
|
|
|
|
+{
|
|
|
|
|
+ return window.hasFocus() && Keyboard::isKeyPressed(Keyboard::Return);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool INPUT::key_select()
|
|
|
|
|
+{
|
|
|
|
|
+ return window.hasFocus() && Keyboard::isKeyPressed(Keyboard::BackSpace);
|
|
|
}
|
|
}
|