AntTweakBar doesn't register SFML mouse events I'm trying to add GUI for easier level editing in our game engine. We're using SFML for all the basic stuff (window management, input events etc). I've chosen AntTweakBar because it is a well known library with a few examples around. I was following the tutorial at AntTweakBar's website I was able to draw a simple bar with those example codes. However, mouse events received by SFML are not registered by AntTweakBar's TwEventSDL() function. Here is an example code for Input sf Event event while ( pWindow gt pollEvent(event)) Check if the event should be handled by AntTweakBar int handled TwEventSFML( amp event, 2, 3) for SFML version 2.3 if (!handled) switch (event.type) case sf Event MouseButtonPressed To check whether SFML received mouse button events properly if (event.mouseButton.button sf Mouse Button Left) std cout lt lt "Left button pressed" lt lt std endl std cout lt lt "x " lt lt event.mouseButton.x lt lt std endl std cout lt lt "y " lt lt event.mouseButton.y lt lt std endl else To check whether TwEventSFML received events std cout lt lt "FINALLY!" lt lt std endl When I press buttons, I can see "FINALLY!" showing up. I can also see that my mouse clicks are received by SFML. However, when I click on an AntTweakBar element (be it a button or help section) it doesn't register it. (Also, I can't see "FINALLY!" when I use the mouse). Any help or ideas will be appreciated.