Skip to content

Commit

Permalink
fixed bumpers for virtual joystick
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Jul 1, 2015
1 parent 0513644 commit 6995dc5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions S-Tengine2/Source/S-Tengine2/src/JoystickVirtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ void JoystickVirtual::update(Step * _step){

// bumpers
if(keyboard->keyJustDown(GLFW_KEY_Q)){
buttonDown(xbox_buttons::kL1);
buttonDownListener(xbox_buttons::kL1);
}else{
buttonUpListener(xbox_buttons::kL1);
}if(keyboard->keyJustDown(GLFW_KEY_E)){
buttonDown(xbox_buttons::kR1);
buttonDownListener(xbox_buttons::kR1);
}else{
buttonUpListener(xbox_buttons::kR1);
}

// face buttons
Expand Down

0 comments on commit 6995dc5

Please sign in to comment.