• Vitaliy Margolen's avatar
    dinput: Create single thread for mouse and keyboard hook. · e66e34ef
    Vitaliy Margolen authored
    Put keyboard & mouse hook callbacks into separate thread.
    Move few global variables into object. Delete no longer used crit section.
    For hooks to work properly hook callback have to be in a thread
    with message loop. Some games create separate threads just to handle
    mouse and/or keyboard events that do not have message loop.
    e66e34ef
device_private.h 9.05 KB