diff options
| author | Tom Black <[email protected]> | 2015-10-04 20:12:32 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2015-10-04 20:12:32 -0400 |
| commit | d70e4d425eab3848226215d42b3a81b8e191de1a (patch) | |
| tree | 197bd95fe7bf5a6479aceb646a8549cb1cf57183 /examples/input.rb | |
| download | ruby2d-d70e4d425eab3848226215d42b3a81b8e191de1a.tar.gz ruby2d-d70e4d425eab3848226215d42b3a81b8e191de1a.zip | |
First!
Diffstat (limited to 'examples/input.rb')
| -rw-r--r-- | examples/input.rb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/input.rb b/examples/input.rb new file mode 100644 index 0000000..a39a29c --- /dev/null +++ b/examples/input.rb @@ -0,0 +1,50 @@ +require 'ruby2d' + +set width: 200, height: 100 + +on key: 'a' do + puts "a pressed!" +end + +show + +# on :mouse 'up' do +# +# end +# +# on :mouse 'down' do +# +# end +# +# on :key 'a' do +# +# end +# +# on :key_down 'a' do +# +# end +# +# on :mouse 'click' do +# +# end +# +# on :mouse 'right' do +# +# end +# +# on :mouse 'left' do +# +# end +# +# +# on key: 'any' do +# +# end +# +# on key: 'a' do +# +# end +# +# on key: 'shift' do +# +# end |
