class Rubygame::ActiveEvent
Indicates that the Rubygame window has gained or lost focus from the window manager.
This event has these attributes:
- gain
-
true if the window gained focus, and false if it lost focus.
- state
-
string indicating what type of focus was gained or lost:
- “mouse”
-
the mouse entered/exited the window
- “keyboard”
-
the window gained or lost input focus
- “active”
-
the window was minimized/iconified.
Attributes
gain[RW]
state[RW]
Public Class Methods
new(gain,state)
click to toggle source
# File lib/rubygame/event.rb, line 167 def initialize(gain,state) @gain = gain @state = state end