Re: SFML2 Demo Dilema
- Posted by jimcbrown (admin) May 09, 2015
- 2568 views
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