Comments (3)
That's a good question! I think mouse actions are handled a little differently - the code for that is in mousekey.c. If you wanted more control over what's happening, you could include mousekey.h
(and possibly host.h
- see the mousekey.h header) at the top of your keymap and try this in a macro (untested):
static report_mouse_t mouse_report = {};
mouse_report.y = 2;
host_mouse_send(&mouse_report);
from qmk_firmware.
Thanks a lot, Jack!
I am look in mousekey.c and resolve my case by code like this:
if (record->event.pressed) {
mousekey_on(KC_ACL2);
mousekey_on(KC_MS_U);
} else {
mousekey_off(KC_MS_U);
mousekey_off(KC_ACL2);
}
from qmk_firmware.
Nice :)
from qmk_firmware.
Related Issues (20)
- Two questions HOT 3
- Add KB29B-01 keyboard HOT 1
- Add Missing Keymappings for Czech Language on macOS HOT 6
- [Bug] Tofu60 unable to wake from sleep on Linux HOT 4
- [Bug] Modifier should be sent before regular key HOT 1
- [Bug] Mod-tap doesn't work with KC_TRANSPARENT HOT 2
- [Bug] Wrong keycode used to change volume on sofle's via keymap HOT 2
- [Bug] Bottom row of Corne Keyboard issues HOT 1
- [Bug] warning:The official repository does not seem to be configured as git remote "upstream". HOT 12
- [Feature Request] Custom keycodes and axies for joysticks HOT 1
- [help] QMK Doc‘s “Flashing DFU Bootloader” cannot flash APM32。 HOT 1
- [Feature Request] Add Left Control and Alt key HOT 2
- [Bug] Most rules in 50-qmk.rules are missing MODE and GROUP for non-systemd distros HOT 4
- Keys are held down and keep repeating after waking from sleep.
- [Bug] If 4 rotary encoders are specified, all rotary encoders will stop responding. HOT 6
- [Bug] Caps Word get reset by normal press with interrupting character on long press HOT 2
- [Feature Request] Password manager/generator functionality HOT 1
- [Bug] Capslock randomly trigger while typing with Sofle V2 HOT 1
- Rotary Encoders - Microsoft flight simulator - MSFS Heading, Speed, Altitude Control HOT 2
- Strange behaviour of macros with lily58 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmk_firmware.