oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.32k stars 271 forks source link

how can I modify caps2esc to caps2win? #156

Closed u-Sir closed 1 year ago

u-Sir commented 1 year ago

I want to modify caps2esc in samples to achieve caps <-> win, but it not work. if i changed to caps2alt, it work properly.

for quick test, only modify the scancode in caps2esc.cpp

caps <-> alt, works.

namespace scancode {
    enum {
        esc       = 0x38,
        ctrl      = 0x38,
        capslock  = 0x3A
    };
}

caps <-> win, not work! how can i fix this?

namespace scancode {
    enum {
        esc       = 0x5B,
        ctrl      = 0x5B,
        capslock  = 0x3A
    };
}