summaryrefslogtreecommitdiffhomepage
path: root/dragon/keys.rb
diff options
context:
space:
mode:
authorAmir Rajan <[email protected]>2021-08-07 00:18:49 -0500
committerAmir Rajan <[email protected]>2021-08-07 00:23:49 -0500
commita1b8552ae442d1fa22df1e569652eb99750dcebf (patch)
treec097d7d69144a97cc0426cb61baa330877644e93 /dragon/keys.rb
parent17d6f2a45d07932fb2ac354d4f8996c420eddc27 (diff)
downloaddragonruby-game-toolkit-contrib-a1b8552ae442d1fa22df1e569652eb99750dcebf.tar.gz
dragonruby-game-toolkit-contrib-a1b8552ae442d1fa22df1e569652eb99750dcebf.zip
Sync core oss engine files.
Diffstat (limited to 'dragon/keys.rb')
-rw-r--r--dragon/keys.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/dragon/keys.rb b/dragon/keys.rb
index c931aff..c49d98a 100644
--- a/dragon/keys.rb
+++ b/dragon/keys.rb
@@ -14,7 +14,7 @@ module GTK
:l1, :r1,
:l2, :r2,
:l3, :r3,
- :start, :select,
+ :start, :select, :home,
:directional_up, :directional_down, :directional_left, :directional_right
].freeze
@@ -22,6 +22,22 @@ module GTK
attr label
end
+ def back
+ @select
+ end
+
+ def back= value
+ @select = value
+ end
+
+ def guide
+ @home
+ end
+
+ def guide= value
+ @home = value
+ end
+
# Activate a key.
#
# @return [void]