class Input
Public Class Methods
KeyPressed(key)
click to toggle source
# File lib/consolegl.rb, line 29 def self.KeyPressed(key) ch = STDIN.getch if ch.to_s == key return true else return false end end
# File lib/consolegl.rb, line 29 def self.KeyPressed(key) ch = STDIN.getch if ch.to_s == key return true else return false end end