2018-06-17 21:08:23

Hi, there has been some talk about this for a while, but I cant seem to find a working solution. I am trying to create a keyhook for pygame in python 3.4 so that jaws works better with my game. Has anyone actually come up with a solution to this issue?

I found this code in a google groups post using pyhook, but I am not exactly sure how to integrate it into my pygame project. I could not get it to work.

from ctypes import windll
import pyHook as pyhook

hardman = pyhook.HookManager()
hardman.KeyDown = [Your key handling function here]
hardman.HookKeyboard()

Does anyone have any ideas on how to fix this issue with jaws intersepting keys before pygame gets them?