Commit cca7fe82 authored by Toussaint Etienne's avatar Toussaint Etienne

Merge branch 'master' of gitlab.crans.org:genie_logiciel_2015/the_dungeon_project

* 'master' of gitlab.crans.org:genie_logiciel_2015/the_dungeon_project:
  terminal input changed
parents 7ce9089e 0ea3d142
......@@ -27,11 +27,16 @@ public class InputConfiguration {
private static int left = KeyEvent.VK_LEFT;
//keys special for terminal version
private static char left_arrow = '4';
private static char right_arrow = '6';
private static char up_arrow = '8';
private static char down_arrow = '2';
private static char escape_terminal = 'p';
private static char left_arrow = 'q';
private static char right_arrow = 'd';
private static char up_arrow = 'z';
private static char down_arrow = 's';
private static char escape_terminal = 'v';
private static char attack_terminal = 'o';
private static char ability1_terminal = 'k';
private static char ability2_terminal = 'l';
private static char ability3_terminal = 'm';
/**
* @param e : a key pressed
......@@ -575,13 +580,13 @@ public class InputConfiguration {
public static char GetFormalInputChar(Input input) {
switch (input) {
case ATTACK:
return GetChar(attack);
return attack_terminal;
case ABILITY_1:
return GetChar(ability1);
return ability1_terminal;
case ABILITY_2:
return GetChar(ability2);
return ability2_terminal;
case ABILITY_3:
return GetChar(ability3);
return ability3_terminal;
case ESCAPE:
return escape_terminal;
case LEFT_ARROW:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment