diff options
| author | Amir Rajan <[email protected]> | 2021-08-07 00:18:49 -0500 |
|---|---|---|
| committer | Amir Rajan <[email protected]> | 2021-08-07 00:23:49 -0500 |
| commit | a1b8552ae442d1fa22df1e569652eb99750dcebf (patch) | |
| tree | c097d7d69144a97cc0426cb61baa330877644e93 /dragon/keys.rb | |
| parent | 17d6f2a45d07932fb2ac354d4f8996c420eddc27 (diff) | |
| download | dragonruby-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.rb | 18 |
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] |
