forum-msg-id-127882-edit

Original date:2015-05-09 19:53:14 Edited by: Icy_Viking Subject: Re: SFML2 Demo Dilema

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.

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu