Re: SFML2 Demo Dilema - Solved

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
Icy_Viking said...

The window dosen't close still, but I believe there may be something wrong with how the flag type is declared, compared to what the C code is.

Ah, I forgot about this. I think with C, enums start from 0, but they start from 1 with Euphoria by default. Try this:

public enum type sfEventType 
 
	sfEvtClosed = 0, 
	sfEvtResized, 
	sfEvtLostFocus, 
	sfEvtGainedFocus, 
	sfEvtTextEntered, 
	sfEvtKeyPressed, 
	sfEvtKeyReleased, 
	sfEvtMouseWheelMoved, 
	sfEvtMouseButtonPressed, 
	sfEvtMouseButtonReleased, 
	sfEvtMouseMoved, 
	sfEvtMouseEntered, 
	sfEvtMouseLeft, 
	sfEvtJoystickButtonPressed, 
	sfEvtJoystickButtonReleased, 
	sfEvtJoystickMoved, 
	sfEvtJoystickConnected, 
	sfEvtJoystickDisconnected, 
	sfEvtTouchBegan, 
	sfEvtTouchMoved, 
	sfEvtTouchEnded, 
	sfEvtSensorChanged, 
	sfEvtCount 
	 
end type 

Thanks Jim, it worked. Thank you all who have helped me with this dilema. Now I can finish writing out the rest of the demos and release the new SFML2 wrapper.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu