So I need to get Windows 10 touch screen events so I created the below code which registers the JFrame for windows message events. The code below successfully intercepts the WM_GESTURENOTIFY exactly how I want it however after a brief period of time anywhere between 1 second and 60 seconds it stops receiving Windows messages and I have to restart it. Any idea what I am doing wrong?
Thanks!