GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Hedgewars: Remove quit prompt on mouse click

completed by: Drew Gottlieb

mentors: koda, Andrey Korotaev, Xeli, Sheepy

[IMAGE http://gci.copyleftgames.org/img/icons/hedgewars.png]
[IMAGE http://gci.copyleftgames.org/img/icons/freepascal.png]
[IMAGE http://gci.copyleftgames.org/img/icons/opengl.png]
[IMAGE http://gci.copyleftgames.org/img/icons/sdl.png]

Remember to join our IRC channel when working on this task! We are on #hedgewars at freenode.net. If you are new to IRC, read this tutorial from a past GCI participant.

Your task

If you alt-tab or press esc while playing you'll get prompted to press esc again, which can be tedious. Add a mouse event so that when user clicks inside the window the prompt goes away. Check out hedgewars/hwengine.pas where our event loop resides.

Please see the discussion on our bug tracker, following this link.

Deliverable

A working patch, that applies cleanly to our source tree. This patch should be in the form of a pull from clone, hg export or unified diff format (in order of preference) implementing the functionality required.