Bugs: Browse | Submit New | Admin

[#29615] SDLEven.app_state constants like SDL::Event::APPMOUSEFOCUS et. al. don't seem to be defined in rubysdl-2.1.2

Date:
2012-07-14 10:28
Priority:
3
Submitted By:
Rafael Sevilla (dido)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
SDLEven.app_state constants like SDL::Event::APPMOUSEFOCUS et. al. don't seem to be defined in rubysdl-2.1.2

Detailed description
1.9.3-p194 :001 > require 'sdl'
 => true 
1.9.3-p194 :002 > SDL::Event::APPMOUSEFOCUS
NameError: uninitialized constant SDL::Event::APPMOUSEFOCUS
	from (irb):2
	from /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'

A quick look at the sources seem to show that APPMOUSEFOCUS, APPINPUTFOCUS, and ACTIVE aren't defined either.  I have
worked around it by using the actual integer values returned by SDL::Event.app_state but this is obviously not a good
idea.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item