Skip to content

Commit

Permalink
Fix pause touch button not working (on Android)
Browse files Browse the repository at this point in the history
  • Loading branch information
yancharkin committed Oct 10, 2020
1 parent a934763 commit 2931790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions objects/oGame.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ if (instance_exists(oPlayer1)) {
//Pause

if (keyboard_check_pressed(global.keyStartVal) or
keyboard_check_pressed(vk_escape) or
global.bStartPressed or
gamepad_button_check_pressed(global.joyid, global.joyStartVal)) {
if (not isRoom("rIntro")) {
Expand Down
1 change: 1 addition & 0 deletions scripts/enableTouchInput.gml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ virtual_key_add(global.display_w - global.touchCorrectionH - (2.5*vkey_size), gl
virtual_key_add(global.display_w - global.touchCorrectionH - vkey_size, global.display_h - global.touchCorrectionV/2 - (2.5*vkey_size), vkey_size, vkey_size, global.keyRunVal);
// Pause
virtual_key_add(global.display_w - global.touchCorrectionH - vkey_size, 0 + global.touchCorrectionV, vkey_size, vkey_size, vk_escape);
virtual_key_add(global.display_w - global.touchCorrectionH - vkey_size, 0 + global.touchCorrectionV, vkey_size, vkey_size, global.keyStartVal);
// Pay
virtual_key_add(global.display_w - global.touchCorrectionH - vkey_size, vkey_size + global.touchCorrectionV/2, vkey_size, vkey_size, global.keyPayVal);
// Rope
Expand Down

0 comments on commit 2931790

Please sign in to comment.