<div dir="ltr">I&#39;m trying to handle my usb controller (xbox model) via GLFW.<div><br></div><div style>I can get it&#39;s input, but I see a strange behaviour in my sample application that I couldn&#39;t explain.</div><div style>

Can you enlight me please?</div><div style><br></div><div style>If I disable automatic event polling on buffer swapping (line &quot;A&quot;), the screen content is refreshed but OS part is unresposive: I can&#39;t resize, move, etc.</div>

<div style><br></div><div style>With automatic event polling enabled, everything is fine.</div><div style><br></div><div style>I tried disabling automatic event polling and calling &quot;waitEvents&quot; (line &quot;B&quot;) before refreshing the screen. But, changes to the joystick input do not generate any event, so I need to move the mouse or type a key to release &quot;waitEvents&quot; call.</div>

<div style><br></div><div style>What am I missing?</div><div style><br></div><div style>I&#39;m using Windows 7 64-bit.</div><div style><br></div><div style>The code is available here: <a href="http://hpaste.org/80031">http://hpaste.org/80031</a></div>

<div style><br></div></div>