Hi
I have noticed that when moving an SDL window about the app freezes , I think this happens in most SDL apps. It's just something that happens (please someone correct me )
You can get rid of the Console window by removing the line
[pascal]
{$APPTYPE CONSOLE}
[/pascal]
This can be handy sometimes so I tend to use
[pascal]
{$IFOPT D+}
{$APPTYPE CONSOLE}
{$ENDIF}
[/pascal]
Which just enables the console window when debugging is enabled.
To stop the same key being handled you have to either
1) use SDL_EnableKeyRepeat to disable key repeat
2) use SDL_GetKeyState to get the current state of the keyboard then check if the key is pressed. (See Demos in JEDI-SDLv1.0 to examples)
Hope this helps
Dean
Bookmarks