class LUIT::ScannerInput

Attributes

field[R]
scanning[R]

Public Class Methods

new(holder, id) click to toggle source
# File lib/luit.rb, line 169
def initialize(holder, id)
        @field = Gosu::TextInput.new
        @window = LUIT.window
        @holder = holder
        @id = id
end

Public Instance Methods

scan() click to toggle source
# File lib/luit.rb, line 181
def scan
        @scaning = true
        @window.text_input = @field
end
stop() click to toggle source
# File lib/luit.rb, line 176
def stop
        @scaning = false
        @window.text_input = nil if @window.text_input == @field
end