class Rubygame::Events::KeyReleased
KeyReleased is an event class which occurs when a key on the keyboard is released (no longer being pressed).
This class gains key and modifiers readers from the KeyboardEvent mixin module.
Public Class Methods
new( key, modifiers=[] )
click to toggle source
Create a new KeyReleased instance.
- key
-
a key symbol for the key that was pressed or released. (Symbol, required)
- modifiers
-
an Array of key symbols for the modifier keys that were active when the event occured. (Array, optional)
Calls superclass method
Rubygame::Events::KeyboardEvent.new
# File lib/rubygame/events/keyboard_events.rb, line 125 def initialize( key, modifiers=[] ) super end