Skip to content

MAKCU API

V4.126 official API · Current text commands and binary protocol, with legacy compatibility references.

Last updated 2026-11-15 · V4.126 official API compatibility update · Firmware version & capability matrix →

Legacy connection compatibility · V4.126

Use USB2 CH343, 8N1, no flow control and one reader/writer. Probe 4000000 and 115200 separately. V27/V29 are not V4.027/V4.029.

Probe with km.version() plus a line ending. V27/V29 echo the queried line; current V4 returns km.MAKCU and a prompt, even with echo enabled. Parse the result line and consume the prompt. Enable streams only after discovery.

V4.073+: km.baud() queries the applied baud; km.baud(115200|4000000|0) changes it; 0 means 115200. Volatile; send at the working rate, reopen at the new rate. Earlier V4 does not implement text baud.

km.serial, km.info, km.help and km.catch_* remain unsupported text commands. Physical serial adapters and third-party application compatibility require hardware validation.

Firmware V4 · V4.126 (official)

— commands and per-build notes

The reference below is V3.x. Current V4 has its own names[] command table plus the separately parsed km.lock_* family. Device settings (LED, polling and controller processing) remain in app.makcu.com.

V4 uses MAK_API (DE AD | LEN | CMD | PAYLOAD), a different opcode space from the legacy V2/AIO protocol below. See /api/versions for binary payloads and per-build availability.

Default interpolation: AUTO (255) — follows the interval between injection commands; a value saved by the user (0–100) is restored at power-up. Read with binary 0x1F.

51 km names, plus km.lock_*

CommandSignature / replySince (default line)
km.version

Device identity query

km.version() -> km.MAKCU followed by CRLF and prompt; never echoed on V4.039+, even with echo on. V27/V29 echo the queried line. Parse the identity result, not the whole response.

km.MAKCU\r\n>>> ; never echoed on V4.039+; V27/V29 prepend the queried line

V4.024
km.device

Route and report-period query

km.device() -> route and report-period string, e.g. R:MK;M:8uf;K:8uf;C:0uf

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.echo

Query or set command echo

km.echo() query, km.echo(enabled) 0 or 1; echo also governs query replies since V4.018

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.buttons

Query or configure input change streaming

km.buttons() query; km.buttons(mode[,period]) mode 0 off, 1/2 prefixed km. + mask + CRLF, 3 bare mask byte; period accepted and ignored (V4.036+).

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.baud

Legacy get-baud frame

V4.073+: km.baud() queries the applied baud; km.baud(115200|4000000|0) changes it; 0 means 115200. Volatile; send at the working rate, reopen at the new rate. Earlier V4 does not implement text baud.

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.073
km.left

Inject a mouse button or query physical/injected ownership

km.left() -> 0 none, 1 physical, 2 injected, 3 both; km.left(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.right

Inject a mouse button or query physical/injected ownership

km.right() -> 0 none, 1 physical, 2 injected, 3 both; km.right(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.middle

Inject a mouse button or query physical/injected ownership

km.middle() -> 0 none, 1 physical, 2 injected, 3 both; km.middle(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.side1

Inject a mouse button or query physical/injected ownership

km.side1() -> 0 none, 1 physical, 2 injected, 3 both; km.side1(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.side2

Inject a mouse button or query physical/injected ownership

km.side2() -> 0 none, 1 physical, 2 injected, 3 both; km.side2(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.move_mask

Block physical mouse movement per direction (V4).

km.move_mask(left,right,down,up) - each 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.wheel_mask

Block physical wheel movement per direction (V4).

km.wheel_mask(down,up) - each 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.move

Injected relative move (x:i16 y:i16)

km.move(x,y), -32768..32767; V4.039+ accepts legacy extra path parameters without using them; spread by mouse injection interpolate (about 4 ms up to 25%, 17 ms at 50%, 42 ms at 80% at 1000 Hz)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.wheel

Injected wheel (delta:i16)

km.wheel(delta) -32768..32767

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.move_now

Request immediate movement; see the V4.086 test-only timing fix

km.move_now(x,y), -32768..32767; requests a one-report horizon. V4.085 can still smooth over several reports. V4.086 test-only changes this to the next free report, with overflow in following reports.

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line.

V4.036
km.left_mask

Block the physical left button; software can still press it (V4).

km.left_mask(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.right_mask

Block the physical right button (V4).

km.right_mask(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.middle_mask

Block the physical middle button (V4).

km.middle_mask(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.side1_mask

Block the physical side1 button (V4).

km.side1_mask(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.side2_mask

Block the physical side2 button (V4).

km.side2_mask(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.down

Press a HID key

km.down(key)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.up

Release a HID key

km.up(key)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.init

Clear injected keyboard state

km.init()

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.press

Press+release with optional hold

km.press(key[,hold_ms[,random_range]])

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.string

Type an ASCII string

km.string("text") double-quoted ASCII, 0..256 bytes

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.isdown

Query injected key state

km.isdown(key) -> physical state 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.multidown

Press several keys (V4).

km.multidown(key1,key2,...)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.multiup

Release several keys (V4).

km.multiup(key1,key2,...)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.multipress

Press and release several keys (V4).

km.multipress(key1,key2,...)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.mask

Block or allow a physical keyboard key (V4).

km.mask(key,enabled) - key: HID code or quoted name

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.remap

Remap a physical key

km.remap(source,target) two keys

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.keys

Query or configure input change streaming

km.keys(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.stream

Input change streams per kind (V4). Events are framed records.

km.stream(kind) query or km.stream(kind,enabled) - kind: mouse, keyboard, controller

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

test-only: km.stream(mouse,1,flags[,merge_ms]) — V4.087 test-only: flags=1 adds physical wheel events, opcode 0x53 subtype 0x20, signed i16 delta; optional merge_ms=0/4/8 (8 ms recommended at 115200). Off by default. This extension is absent in V4.088–V4.092.

V4.024
km.controller_state

Inject a complete controller state into the attached game controller (V4). Stick +Y is down.

km.controller_state() query or km.controller_state(low,high,lt,rt,lx,ly,rx,ry); digital words u32, triggers u16 (normalized state uses 0..1023), sticks i16; +Y down

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.controller

Query or configure input change streaming

km.controller(enabled) - 0 or 1

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

test-only: km.controller(id,value[,hold_ms]) — Test builds from V4.105: with two or three arguments, sets one controller control by canonical id with an optional hold time; same as binary 0x71.

V4.024
km.controller_mask

Mask a controller control (V4).

km.controller_mask(control,mode) - control name or id

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.controller_physical

Read the physical state of the attached controller (V4).

km.controller_physical()

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.024
km.click

Scheduled click(s) (km.click)

V4.026+: km.click(button[,count[,hold_ms]]) button 1..5, count 1..255, hold 1..5000 ms or random 35-75 ms; hold and gap equal

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.026
km.moveto

Absolute move on virtual screen (km.moveto)

km.moveto(x,y[,segments,cx1,cy1,cx2,cy2]); x/y 0..32766 on the virtual screen; extra path parameters accepted and ignored

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.026
km.getpos

Read tracked pointer position (km.getpos)

V4.026+: km.getpos() -> km.getpos(x,y); estimate from every mouse report the PC accepted, clamped to the screen

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.026
km.screen

Get/set virtual screen size (km.screen)

V4.026+: km.screen() -> km.screen(w,h); km.screen(w,h) 1..32767 sets the size and centres the pointer; default 1920x1080

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.026
km.silent

Move, click, move back (km.silent)

V4.026+: km.silent(x,y) moveto, left click (random 35-75 ms hold), then move back by the same distance

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.026
km.moving

Query pending injected movement

km.moving() -> 1 while injected movement is still being sent, 0 when done

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line.

V4.039
km.ms1

Inject a mouse button or query physical/injected ownership

km.ms1() -> 0 none, 1 physical, 2 injected, 3 both; km.ms1(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line.

V4.039
km.ms2

Inject a mouse button or query physical/injected ownership

km.ms2() -> 0 none, 1 physical, 2 injected, 3 both; km.ms2(state) 0 release, 1 press, 2 legacy silent release (V4.039+)

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line.

V4.039
km.lock_*

Lock an axis/button (km.lock_*)

V4.026+: targets ml mr mm ms1 ms2 mx my mw mx+ mx- my+ my- mw+ mw-; km.lock_*(1|0) set, km.lock_*() -> 0 or 1; same state as the *_mask commands

Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR

V4.026
km.autorelease

Release injected mouse buttons after a period with no API commands (test builds)

km.autorelease() queries the timeout in ms; km.autorelease(ms) sets it, 0..60000, 0 = off. Volatile: off after every power-up. Binary 0x6E: empty payload = query, u32 LE = set; reply u32 LE current value.

Queries: <result> >>> ; mutations silent with echo off; errors: ERR

V4.103
km.heartbeat

Keep-alive for km.autorelease (test builds)

km.heartbeat(), no arguments; restarts the km.autorelease timer and does nothing else. Binary 0x6F: empty payload; no reply on success, FF on error.

Silent with echo off; errors: ERR

V4.103
km.api_version

Integer API version so software can check which commands and reply formats are available (test builds; V4.105 reports 1)

km.api_version(), no arguments; returns the firmware API version as a decimal integer. Binary 0x70: empty payload; reply u32 LE.

Queries: <result> >>> ; mutations silent with echo off; errors: ERR

V4.105
km.controller_clear

Drop all controller injection at once: every control returns to the physical value and all holds are cancelled. Takes effect after commands already sent. Does not change km.controller_mask or km.autorelease (test builds)

km.controller_clear(), no arguments. Binary 0x72: empty payload; no reply on success, FF on error.

Silent with echo off; errors: ERR

V4.105
km.controller_axes

Stream the physical controller triggers and sticks (canonical ids 10-15). Sampled every period, only changed values are sent, normalized like km.controller_physical (triggers 0..1023, sticks -32768..32767). Text event: km.controller_axes(id,value). Binary event: DE AD 04 00 75, kind=1, id, value u16 LE. id 255 means the controller snapshot is unavailable. Off by default and after reconnect (test builds)

km.controller_axes() queries "mode,period"; km.controller_axes(mode[,period_ms]) sets it. mode 0 = off, 1 = text events, 2 = binary events; period 1..1000 ms, default 10. Binary 0x73: empty payload = query (reply mode u8 + period u16 LE); set payload mode u8 + period u16 LE.

Queries: <result> >>> ; mutations silent with echo off; errors: ERR

V4.105
km.controller_buttons

Stream the physical controller buttons and D-pad (canonical digital ids, value 0/1). Sampled every period, only changes are sent. Text event: km.controller_buttons(id,value). Binary event: DE AD 04 00 75, kind=2, id, value u16 LE. id 255 means the controller snapshot is unavailable. Off by default and after reconnect (test builds)

km.controller_buttons() queries "mode,period"; km.controller_buttons(mode[,period_ms]) sets it. mode 0 = off, 1 = text events, 2 = binary events; period 1..1000 ms, default 10. Binary 0x74: empty payload = query (reply mode u8 + period u16 LE); set payload mode u8 + period u16 LE.

Queries: <result> >>> ; mutations silent with echo off; errors: ERR

V4.105

Per-build notes

V4.073 — formerly official / superseded

V4.073 official: adds km.baud query/set and binary A4 applied-baud discovery. Supports 115200 and 4000000; baud(0) selects 115200. Existing version reply, boot defaults and passthrough are unchanged. Software tests pass; third-party serial applications remain unverified.

V4.074 — test

V4.074 test: opt-in raw relative mouse movement with explicit asynchronous receipts. Binary 0x69 submits one relative XY request; 0x6A queries and acknowledges its result. Raw movements preserve FIFO ordering and bypass AUTO interpolation. Existing KM movement and AUTO behavior remain unchanged. Use strictly increasing nonzero request IDs per device boot and read terminal results before acknowledging them. Up to 16 live or unread results; unavailable targets, out-of-range values, resets and timeouts are reported explicitly. Timeout starts when the request reaches the processing head, not at enqueue. Host regression and dual-chip build validation only; physical UART/USB, throughput and long-run stability require hardware testing. No new settings, persistent format or bootloader changes. V4.073 remains the official rollback.

V4.075 — test

V4.075 test: improves legacy A4/A5 baud-handshake compatibility after upgrading from V3 firmware. Over-long declared payloads are fully consumed so trailing bytes cannot desynchronize the next km.version() or binary command. Standard frames and the short-A5 compatibility behavior remain unchanged. USB identity, version reply, boot and persistent baud settings, Raw API and bootloaders are unchanged. Host tests and a clean dual-chip build pass; closed-source application detection still requires physical validation. V4.073 remains the official rollback.

V4.076 — formerly official / superseded

Improves detection by some programs after a firmware update. Fixes repeated mouse movement and movement continuing after a cancelled request in specific control modes. Existing settings and everyday controls are retained. Compatibility with every third-party program is not guaranteed.

V4.077 — test

V4.077 DualSense / DualSense Edge compatibility test. Temporarily disables controller USB audio to investigate disconnects during gameplay. Controller speaker, microphone, headset audio and USB audio-based haptics are unavailable through MAKCU. Buttons, sticks and HID output remain supported; please test vibration and adaptive triggers in your game. Includes V4.076 API compatibility fixes. This is a test release; report whether disconnects, stuck input or continuous vibration persist. Your previously working firmware can be restored if needed.

V4.078 — formerly official / superseded

Fixes mouse button release after changing button locks while the mouse is stationary. Includes V4.076 Raw movement and legacy detection fixes, and V4.077 DualSense/Edge USB audio isolation. Controller speaker, microphone, headset audio and USB audio-based haptics are unavailable. Saved settings and bootloaders are unchanged.

V4.079 — test

V4.079 targeted test: fixes km/API mouse and keyboard injection stopping after the PC restarts or resumes while MAKCU stays powered (previously only replugging USB1 restored it), and fixes some high-speed mice (for example Rapoo VT3 Max Gen-2) whose km commands returned ERR. Includes V4.078; DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged. Software regression and signed paired build verified; real-device result requires your feedback.

V4.080 — test

V4.080 targeted test: fixes USB hubs on MAKCU USB3 that reject the hub status request (for example some Anker hubs); MAKCU no longer tears down and re-enumerates the whole hub every second or two, so controllers, P5 General and other devices behind the hub can connect. Includes V4.079 and V4.078; DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged. Software regression and signed paired build verified; real-device result requires your feedback.

V4.081 (PS5 A/B diagnostic) — diagnostic test

V4.081 PS5 A/B diagnostic build for one targeted test: DualSense/DualSense Edge USB audio interfaces are NOT hidden (V4.076 behaviour), so a PS5 sees the original controller configuration. Otherwise identical to V4.080 (USB hub fix, V4.079/V4.078 fixes). On a PC, DualSense may show the older connection problems; return to V4.080 after the test. Saved settings and bootloaders are unchanged.

V4.082 — test

V4.082 targeted diagnostic test for stuck mouse buttons / a frozen mouse: reports now show which side holds each mouse button, the last accepted and rejected button commands, and whether the USB input from your mouse stopped. No change to how MAKCU handles input or output. Includes V4.080 (USB hub fix) and V4.079/V4.078. DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged.

V4.083 — test

V4.083 targeted diagnostic test for controllers the host does not accept: reports now record the host's last USB setup requests and how MAKCU answered (with timing), and why the USB3 port removed a device (unplug, port error, over-current, power off, timeout). No change to how MAKCU handles devices, input or output. Includes V4.082 diagnostics and V4.080/V4.079 fixes. DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged.

V4.084 — diagnostic test

V4.084 PS5 diagnostic build for one targeted test: DualSense/DualSense Edge USB audio interfaces are NOT hidden (V4.076 behaviour), so a PS5 sees the original controller configuration; reports also record the host USB setup requests and why the USB3 port removed a device (V4.083 diagnostics). Otherwise identical to V4.083. On a PC the DualSense may again not be recognised; go back to V4.083 after the test.

V4.085 — formerly official / superseded

Fixes km/API mouse movement not reaching the PC on mice that expose duplicate mouse reports, such as ATK 373B mice. Mouse and keyboard injection keep working after the PC restarts or resumes while MAKCU stays powered. Fixes some wireless receivers, such as Rapoo, not working through MAKCU, and a USB hub that rejects a status request no longer drops every device behind it. Adds diagnostics to support reports. Includes V4.078; DualSense/Edge USB audio remains unavailable. Saved settings and bootloaders are unchanged.

V4.086 — test

Fixes km.move_now / MOVE_NOW and interpolation 0 still being smoothed over several USB reports (aim tools could overshoot or circle): the move now goes out in the next free USB report, and any part that does not fit one report follows in the next reports. AUTO interpolation behaves the same way when commands arrive faster than the mouse reports. Nonzero interpolation values are unchanged; choose a nonzero value if you want smoothing. This build is based on V4.085 and includes its fixes.

V4.087 — test

Adds optional physical mouse wheel reporting to the button event stream for telemetry tools: enable it with km.stream(mouse,1,1) (or km.stream(mouse,1,1,8) to combine scrolling every 8 ms, recommended at 115200 baud); each scroll is sent as a 9-byte event DE AD 04 00 53 01 20 followed by the signed 16-bit wheel delta. It is off by default, so existing programs see no change. Based on the official V4.085.

V4.088 — test

Controller stick blend test for third-party aim tools: stick values sent through MAKCU are now added on top of your physical stick instead of replacing it, and a centered command no longer snaps the stick back to your own position, which removes the small mechanical jumps. Triggers, buttons and D-pad are unchanged. For this test keep the right stick dead zone at 0 and the response curve off. This build turns the blend on at power-up; it is based on the official V4.085.

V4.089 — test

Controller pulse-hold test for aim tools that send a short correction and re-centre a few milliseconds later: the correction is now held for at least 12 ms before the stick returns to centre, so it is no longer swallowed as a small twitch. Includes the V4.088 stick blend (sent values are added on top of your physical stick). Triggers, buttons and D-pad are unchanged. Keep the right stick dead zone at 0 and the response curve off for this test. Based on the official V4.085.

V4.090 — test

Controller pulse-hold test without stick blending: sent stick values replace your stick as in the official firmware, but a short correction that is re-centred a few milliseconds later is now held for at least 12 ms, so it is no longer swallowed as a small twitch. Triggers, buttons and D-pad are unchanged. Based on the official V4.085.

V4.091 — diagnostic test

Xbox controller headset audio diagnostic build: V4.088 (stick blend on at power-up) with the extra internal diagnostics added in V4.079-V4.083 removed from the USB data path, to check whether they cause headset audio to crackle or stop on Xbox. Support reports from this build contain fewer diagnostics. Based on the official V4.085.

V4.092 — diagnostic test

Diagnostic test build for USB3 disconnects and power loss: MAKCU keeps a short record of why the USB3 port removed a device (including an over-current power cut) and of the PC or console resetting MAKCU, so the evidence is still in the support report after power is lost. No change to how MAKCU handles devices, input or output. Based on the official V4.085.

V4.093 — diagnostic test

Diagnostic test build for USB3 disconnects and power loss (replaces V4.092): MAKCU keeps a short record of why the USB3 port removed a device (including an over-current power cut) and of the PC or console resetting MAKCU, so the evidence is still in the support report after power is lost. The routine link reset at power-on no longer uses up the record. No change to how MAKCU handles devices, input or output. Based on the official V4.085.

V4.094 — formerly official / superseded

Adds an optional controller stick blend mode (off by default): when switched on in the Toolkit controller settings, aim or assist software adds its correction to your own stick movement instead of taking the stick over, and the setting is kept after power-off. If your aim software also blends the physical stick itself (for example Blurred Joystick Blend), set its blend to 0 when using this mode. Support reports show corrected USB3 connect and disconnect counts. Includes all V4.085 fixes; saved settings and bootloaders are unchanged.

Adds an optional additive stick mode for injected controller sticks, off by default. Enable it by setting bit 2 (value 4) of the controller-behavior byte (settings image byte 397) in a 0x1D controller-section write. When enabled, injected left/right stick values are applied as an offset from centre added to the physical stick (clamped to the axis range) instead of replacing it, and a centred value means a zero offset rather than forcing the stick to centre. Triggers, buttons and D-pad are unchanged. Saving the controller section keeps this bit across power-off; bits 0 and 1 remain runtime-only. A controller-section write with bit 2 clear turns the mode off. Otherwise the API is the same as V4.085.

V4.095 — formerly official / superseded

Fixes controller aim or assist injection being refused on controllers that also expose an unused mouse interface (for example the GameSir G7 8K Pro in XInput mode): a command sent to that never-used mouse no longer blocks the controller commands behind it. Includes the optional controller stick blend mode (off by default) and all V4.094 fixes; saved settings and bootloaders are unchanged.

V4.096 — test

Test build. Fixes MAKCU not starting after a firmware update on some boards (a "USB JTAG" device keeps appearing and disappearing on USB1 and the Toolkit cannot read the version): if the one-time USB setup step inside the chip fails, MAKCU now keeps running instead of restarting in a loop. Adds a 0x6C batch command (up to 16 raw mouse moves per message) for API developers. Otherwise the same as the official V4.095. Not yet tested on hardware.

Adds 0x6C RAW_BATCH (test builds only): one frame carries up to 16 RAW_MOVE (0x69) records and returns one combined receipt, which cuts round trips for high-rate network or serial senders. Each record is admitted with exactly the same rules, IDs and reject reasons as 0x69; admission stops at the first rejected record and the records before it stay queued. An optional cumulative acknowledgement in the same frame frees finished records up to a given ID, replacing separate 0x6A acknowledgements. 0x69 and 0x6A replies are byte-for-byte unchanged.

When a button, wheel or release override targets a mouse interface that has never sent a report, the first command still waits up to 250 ms before being rejected with reason 22; later commands to the same target are now rejected with reason 22 immediately, so they no longer delay controller commands queued behind them. The state clears as soon as that mouse sends a real report or the target changes. XY moves, RAW_MOVE and policy commands are unaffected.

V4.097 — formerly official / superseded

Keeps MAKCU running on boards where a one-time USB setup step inside the chip fails at start-up (previously such boards restarted in a loop after a firmware update; Windows showed a "USB JTAG" device appearing and disappearing). MOVE_NOW and mouse moves with interpolation 0 are now sent in the next report instead of being spread over four or more reports. The BOOT button must be held for 3 seconds to switch the start-up serial speed, so a short accidental press no longer disconnects your software. Adds a 0x6C batch command (up to 16 raw mouse moves per message) for API developers. Includes all V4.095 fixes; saved settings and bootloaders are unchanged.

km.move_now / MOVE_NOW and interpolation 0 now send the move in the next free USB report instead of spreading it over four or more reports; any part that does not fit one report follows in the next reports. AUTO interpolation behaves the same way when commands arrive faster than the mouse reports. Nonzero interpolation values and RAW_MOVE (0x69/0x6C) are unchanged; closed-loop tools tuned for the old behaviour may need retuning. Includes all V4.096 API changes.

V4.098 — test

Test build for boards where MAKCU stops working after a while and only recovers when unplugged (the USB3 side goes silent): if the USB3 side gets stuck in a USB error state it now restarts itself (at most 3 times in a row) instead of staying dead until you replug; each restart is noted in the support report. Otherwise the same as the official V4.097. Not yet tested on hardware.

V4.099 — formerly official / superseded

Fixes software mouse moves sometimes being held back after the mouse has been idle for a while (roughly 9 to 18 seconds, most often with wireless receivers) and then arriving all at once; continuous movement is unchanged. If the USB3 side gets stuck in a USB error state, it now restarts itself (at most 3 times in a row) instead of staying dead until you replug; each restart is noted in the support report. Includes all V4.097 fixes; saved settings and bootloaders are unchanged.

V4.100 — test

Test build: the Toolkit can read the support history in batches of up to 8 records (and only the new ones) instead of one record per request, so making a support report holds up your software for much less time once the Toolkit supports it. Older Toolkit versions work as before. Otherwise the same as the official V4.099. Not yet tested on hardware.

V4.101 — test

Test build: with an ordinary mouse, software mouse moves now work right after MAKCU is plugged in or reconnected, without having to move the physical mouse once first. Game controllers keep the previous protection. Also includes the faster support-history reading from V4.100. Otherwise the same as the official V4.099. Not yet tested on hardware.

With an ordinary mouse, injected mouse input (moves and buttons) now takes effect right after MAKCU is plugged in or the mouse re-enumerates, before the physical mouse has sent its first report. This applies only when the device has a single unambiguous primary mouse interface and no game-controller interface; game controllers, composite devices and devices whose descriptors cannot be fully parsed keep the previous behaviour (injection waits for the first physical mouse report). Once any physical mouse report arrives, target selection is the same as before.

V4.102 — formerly official / superseded

If the USB3 side keeps getting stuck in a USB error again and again, MAKCU now stops restarting it after a few attempts (one more attempt after 10 minutes of normal use) instead of restarting it forever. With an ordinary mouse, software mouse moves work right after MAKCU is plugged in, without moving the physical mouse once first (game controllers keep the previous protection). The Toolkit can read the support history faster once it supports it. Includes all V4.099 fixes; saved settings and bootloaders are unchanged.

With an ordinary mouse, injected mouse input (moves and buttons) now takes effect right after MAKCU is plugged in or the mouse re-enumerates, before the physical mouse has sent its first report. This applies only when the device has a single unambiguous primary mouse interface and no game-controller interface; game controllers, composite devices and devices whose descriptors cannot be fully parsed keep the previous behaviour (injection waits for the first physical mouse report). Once any physical mouse report arrives, target selection is the same as before. Otherwise the API is the same as V4.099.

V4.103 — test

Test build: optional protection against stuck mouse buttons. If your software presses a mouse button and then stops sending anything (for example it crashed), MAKCU can release that button by itself after a time you choose (km.autorelease(ms), off by default and after every power-up; km.heartbeat() keeps it alive). Your physical buttons are never affected. Otherwise the same as the official V4.102. Not yet tested on hardware.

Adds km.autorelease(ms) / binary 0x6E (test build): if any injected mouse button is held, or a km.click is in progress, and no accepted API command has arrived for ms milliseconds, MAKCU cancels the click and releases the injected mouse buttons. 0 turns it off; the range is 0 to 60000. It is off by default, is not saved, and returns to off after every power-up. Any accepted command (moves, queries, km.heartbeat()) restarts the timer; rejected or malformed commands do not. Physical buttons and keyboard input are never affected. The timer is shared by every program talking to the same MAKCU.

Adds km.heartbeat() / binary 0x6F (test build): a no-op that only restarts the km.autorelease timer. Takes no arguments. Otherwise the API is the same as V4.102.

V4.104 — test

Test build: MAKCU now keeps statistics about how evenly it sends mouse reports and how long software moves wait before they go out, so the Toolkit debug mode can tell whether stutter comes from your software or from MAKCU. Statistics only; mouse output is unchanged. Includes everything in V4.103. Not yet tested on hardware.

V4.105 — test

Test build for developers: adds km.api_version() so software can check which commands this firmware supports, controller commands that set a single button, trigger or stick with an optional hold time (km.controller(id,value[,hold_ms])), km.controller_clear() to drop all controller injection at once, and live controller stick/button readouts (km.controller_axes / km.controller_buttons). Existing commands behave exactly as before. Includes everything in V4.104. Not yet tested on hardware.

Adds km.api_version() / binary 0x70 (test build): returns an integer API version so software can check which commands and reply formats this firmware supports. V4.105 reports 1; the number increases whenever API behaviour or a reply format changes.

Adds km.controller(id,value[,hold_ms]) / binary 0x71 (test build): sets a single button, trigger or stick by canonical id. hold_ms 0 keeps it until changed or cleared; 1 to 60000 returns it to the physical value when the time runs out. D-pad ids 4-7 act as one group. A full-state controller write (0x40) cancels these holds. km.controller(enabled) and other existing forms are unchanged.

Adds km.controller_clear() / binary 0x72 (test build): returns every controller control to its physical value and cancels all holds, after any commands already sent. km.controller_mask and km.autorelease are not changed.

Adds km.controller_axes(mode[,period_ms]) / 0x73 and km.controller_buttons(mode[,period_ms]) / 0x74 (test build): stream physical trigger/stick values or button states, sampled every 1-1000 ms (default 10) and sent only when they change. mode 1 sends text events, mode 2 binary events with opcode 0x75; id 255 marks an unavailable snapshot. Off by default. When none of the new commands are used, all existing commands and replies behave exactly as in V4.104.

V4.106 — test

Test build: game controllers pass through MAKCU with about 1 ms of added delay instead of about 11 ms (1 ms controller polling, on by default, can be switched off in controller settings; switching off takes effect after replugging the USB3 device or restarting MAKCU). Reading the physical controller state is more reliable. Mice and keyboards unchanged. Not for general release yet.

Game controllers now pass through MAKCU with 1 ms polling by default (about 1 ms added delay instead of about 11 ms). The 400-byte device tuning image read and written through the management connection (0x3E) record 0x1D gains a controller field at the end: byte 398 = 0xA6 tag, byte 399 = 0 (1 ms polling off) or 1 (on). Bytes 398/399 = 00/00 leave the setting unchanged, so existing software that writes zeros keeps working. READ always returns 0xA6 plus the current value, which software can use to detect this feature. Other values are rejected as invalid only when the controller section is selected. APPLY changes the setting in memory; SAVE persists it. Switching from off to on re-enumerates the USB1 device once immediately; switching from on to off takes effect at the next USB1 enumeration (replug the USB3 device or restart MAKCU). Note: a tuning image exported from V4.106 (byte 398 = 0xA6) is rejected as invalid by a controller APPLY on V4.105 and older.

Reading the physical controller state (km.controller_physical / binary 0x54, and the physical values used by km.controller_axes / km.controller_buttons) now retries internally up to 32 times when the state is being updated at the same moment, instead of failing immediately. Replies and error codes are unchanged; software only sees fewer rejected reads. Mouse and keyboard commands are unchanged from V4.105.

V4.107 — test

Test build: fixes the stick-translation anti-deadzone setting that could not be read or saved; reading the physical controller state from software is much less likely to be refused. Includes everything in V4.106. Not for general release yet.

Fixes the anti-deadzone setting of the two mouse/keyboard-to-stick translation channels, which has answered with error (0xFF) since V4.023 because the management connection (0x3E) routed the 2- and 3-byte 0x1C record to the wrong handler. [0x1C, channel] reads and [0x1C, channel, percent] stages a value; channel is 0 or 1 and percent 0 to 50 (percent of full stick travel). The reply is 4 bytes [0x1C, channel, percent, pending]: percent is the current value (0 when never set, meaning off) and pending is 1 until the setting has been written to flash. Out-of-range channel or percent still answers 0xFF, and the same ready/error gating as records 0x1A/0x1B applies. 0x1C with other lengths (6 or 7 bytes), records 0x1A/0x1B/0x1D/0x1E and the stored settings format are unchanged.

Reading the physical controller state (km.controller_physical / binary 0x54, and the physical values used by km.controller_axes / km.controller_buttons) is much less likely to be refused while the state is being updated. The firmware now prepares the new state before opening the update window, so the window is only a few atomic writes long, and the reader retries with short pauses for up to about 100 microseconds instead of 32 immediate retries. Replies and error codes are unchanged; an empty state is still refused immediately. Software is unaffected except for fewer rejected reads and, worst case, about 100 microseconds extra latency on one reply. Diagnostics only: snapshot kind 14 (format 2) grows from 80 to 85 32-bit words, the last five being cumulative read-failure counters; software that parses this snapshot must accept the longer record. Mouse and keyboard commands are unchanged from V4.106.

V4.108 — formerly official / superseded

Game controllers now pass through MAKCU with much lower added delay: the controller is polled every 1 ms (this can be switched off in Toolkit 1.15.68 or later; switching it off takes effect after replugging the USB3 device or restarting MAKCU). Fixes the stick anti-deadzone setting that could not be read or saved. Software reading of the physical controller state is refused far less often. Includes all earlier fixes; saved settings and bootloaders are unchanged.

Compatibility change to the 400-byte device tuning image read and written through the management connection (0x3E) record 0x1D. READ (subcommand 01) now returns bytes 398 and 399 as 00/00 on the wire for any chunk that covers them, instead of the 0xA6 tag plus current value introduced in V4.106; software that requires these two bytes to be zero (all Toolkit 1.x versions) can open the tuning image again. The controller 1 ms polling switch is now queried with a new read-only subcommand: request [0x1D, 0x07] (exactly 2 bytes), reply 9 bytes [0x1D, 0x07, 0x00, revision (4 bytes), 0xA6, value] where value is 0 (off) or 1 (on). It does not open or touch a staging transaction and does not require a controller to be attached. Status codes follow the record: 2 busy and 6 storage are passed through, a request of another length is rejected as invalid (4), and 5 (unsupported) is answered if the stored image does not carry a valid switch. Firmware up to V4.107 does not know subcommand 07 and answers status 3 (stale), which software can use to detect this build; V4.106 and V4.107 can additionally be recognised by READ returning 0xA6 at byte 398. Write semantics are unchanged: 0xA6/00 or 0xA6/01 in bytes 398/399 sets the switch, 00/00 leaves it unchanged, so reading the whole image and writing it back keeps the current setting. The revision value still reflects the internal switch state. Mouse and keyboard commands are unchanged from V4.107.

V4.109 — test

Test build: when a mouse or other device on USB3 answers the first descriptor request only partly, MAKCU now resets it once more with a longer pause before giving up, and records what the device sent so support can see why it was not recognized. Devices that are already recognized are not affected. Includes everything in V4.108. Not yet tested on hardware.

V4.110 — test

Lab test build (not for customers): adds a temporary switch for the mouse 1 ms polling rewrite so it can be compared on and off. On by default and identical to V4.108; the switch is not saved. Not yet tested on hardware.

Lab test build only. Record 0x1D of the management connection (0x3E) gains subcommand 08, a temporary switch for the mouse 1 ms polling rewrite introduced in V4.108. Request [0x1D, 0x08] queries it; [0x1D, 0x08, value] sets it, where value is 0 (present the mouse with its native polling interval) or 1 (rewrite to 1 ms, the default). The reply is 5 bytes [0x1D, 0x08, 0x00, allowed, presented]: allowed is the current switch value and presented is 1 when the mouse is currently presented to the PC with the rewritten 1 ms interval. A request of another length or a value above 1 is answered with the 3-byte reply [0x1D, 0x08, 0x03]. The switch lives in RAM only: it is not saved by SAVE, does not change the tuning revision, and returns to 1 after power-off. Changing it re-enumerates the USB1 device once when a mouse whose native interval is above 1 ms is attached. With the default value the firmware behaves exactly like V4.108; all other commands are unchanged.

V4.111 — test

Lab test build (not for customers): while software injection is active, MAKCU no longer slows down how often it reads the physical mouse, which removes the extra jitter seen with automatic interpolation or very high command rates. Controllers and keyboards are unchanged. Not yet tested on hardware.

V4.112 — test

Test build: some 2.4 GHz receivers that fail to answer the first long configuration request through USB3 are now asked again in two shorter steps, so they can be recognized. Devices that already work are not affected. Includes everything in V4.108. Not yet tested on hardware.

V4.113 — diagnostic test

Lab diagnostic build (not for customers): V4.111 plus internal counters for the mouse polling investigation. Not yet tested on hardware.

Lab diagnostic build only. Record 0x1D of the management connection (0x3E) gains subcommand 09, which reads internal diagnostic counters used for laboratory investigation of mouse polling. Its request and reply layout is internal, may change between builds, and is not intended for applications. Requests that do not start with [0x1D, 0x09] are handled exactly as in V4.111, and all other commands are unchanged. Builds without the lab diagnostics do not have this subcommand.

V4.114 — test

Lab test build (not for customers): physical mouse reports are confirmed between the two chips sooner while software injection is active, so the physical mouse keeps being read at full rate. Includes internal diagnostic counters. Not yet tested on hardware.

V4.115 — test

Lab evidence build (not for customers): early version of the V4.119 fix, superseded by V4.119.

V4.116 — diagnostic test

Lab diagnostic build (not for customers): automatic recovery when the physical mouse stops being read, plus extra internal diagnostics. Not yet tested on hardware.

Lab diagnostic build only. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E), introduced in V4.113, can additionally return a read-only snapshot of the physical mouse input state for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.

V4.117 — diagnostic test

Lab diagnostic build (not for customers): V4.116 plus more internal diagnostics for the case where the mouse is not detected again after a restart. Not yet tested on hardware.

Lab diagnostic build only. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E) can additionally return read-only snapshot pages describing the downstream USB host state and its automatic recovery counters, for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.

V4.118 — diagnostic test

Lab diagnostic build (not for customers): V4.117 plus an internal event log for the case where the mouse is not detected again after a restart. Not yet tested on hardware.

Lab diagnostic build only. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E) can additionally return read-only pages of a small internal event log of the downstream USB host, for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.

V4.119 — test

Withdrawn test build (not for customers): replaced by V4.122.

V4.120 — diagnostic test

Lab diagnostic build (not for customers): V4.118 plus internal timing of how long the mouse input waits for confirmation between the two MAKCU chips, and extra USB controller register samples for the case where the mouse stops being read. Not yet tested on hardware.

Lab diagnostic build only. Based on V4.118. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E) can additionally return read-only timing of how long downstream mouse input waits for confirmation between the two MAKCU chips, and a second delayed sample of USB controller registers, for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.

V4.121 — test

Withdrawn test build (not for customers): replaced by V4.122.

V4.122 — formerly official / superseded

If the USB3 device stops working after MAKCU restarts while it stays plugged in, MAKCU now reconnects it by itself (up to three tries, about half a second apart) instead of leaving it dead until you unplug it. The mouse also recovers by itself when its input briefly stops after a lost internal acknowledgement, and unplugging a USB3 device can no longer leave MAKCU waiting indefinitely. Physical mouse input under high-rate injection is the same as V4.108. Includes all earlier fixes; saved settings and bootloaders are unchanged.

V4.123 — test

Test build based on V4.122: if your mouse or other USB3 device suddenly stops responding while it stays plugged in (the kind of freeze that previously needed an unplug), MAKCU now notices within about two seconds and reconnects it by itself, usually in about three seconds in total. Idle devices are checked only with a standard status request every 30 seconds; nothing is written to them. Everything else is the same as V4.122.

V4.124 — test

Test build based on V4.122: if your mouse or other USB3 device suddenly stops responding while it stays plugged in (the kind of freeze that previously needed an unplug), MAKCU now notices within about a second and reconnects it by itself, usually in three to four seconds in total, even when it happens again shortly after. Devices are only checked with a standard status request; nothing is written to them. Everything else is the same as V4.122.

V4.125 — test

Test build based on V4.122: if your mouse or other USB3 device suddenly stops responding while it stays plugged in (the kind of freeze that previously needed an unplug), MAKCU now notices within about a second and reconnects it by itself, usually in three to four seconds in total, including when it happens several times in a row. If a device still does not come back after repeated reconnects, MAKCU pauses these attempts for ten minutes. Devices are only checked with a standard status request; nothing is written to them. Everything else is the same as V4.122.

V4.126 — official

V4.126 preserves the V4.122 command names, opcodes, parameters and reply formats. Movement pacing with the default AUTO interpolation is improved while software sends mouse movement. Saved settings and bootloaders are unchanged.

V4.501 — test

Internal lab test build (controller latency): the controller input endpoint is presented to the PC with a 1 ms polling interval. Not for customer use.

V4.502 — test

Internal lab test build (controller latency, second attempt): the controller input endpoint is presented to the PC with a 1 ms polling interval, now also for controllers such as DualSense. Not for customer use.

Firmware version & capability matrix

MAKXD firmware (0.2.0+): behaves like MAKCU V4 here: queries answer result\r\n>>> and repeat the command only with km.echo(1) (earlier MAKXD firmware always repeated it); km.left()…km.side2() answer 0–3 and text km.buttons(1) streams one mask byte per change; stick +Y is down on every controller family, including the axis mask modes (earlier MAKXD passed Xbox-protocol/XInput Y through, positive up); mouse/keyboard-to-controller translation is off by default, also on devices upgraded without saved settings; third-party Xbox-protocol (GIP) and XInput pads are recognised by their interface, and generic HID controllers take their right stick and triggers from the report descriptor, with any 16-bit range. MAKXD version numbers: up to V24 they are Vn; from 0.1.0 major.minor.patch, reported as major×10000 + minor×100 + patch (0.2.0 is 200), so numeric comparisons with the old releases keep working.

Legacy API (ASCII)

All replies start with km. and end withCRLF followed by the prompt>>> .
TX samples below show the final prompt as\r\n>>> .
RX (Host → Device)
  • Command format: Start with . and end with ). The km. prefix is no longer required.
  • Other values (such as km, \r\n, etc.) are ignored. Example: .move(1,1,)
  • Optional binary frame: DE AD <lenLE:2> <ASCII or binary payload>
TX (Device → Host)
  • Format: km.payload\r\n>>> (the km. prefix is retained for compatibility)
  • Setters echo the input as ACK unless suppressed byecho(0).
  • Some streaming replies carry binary after the km. prefix:km.mouse<8 bytes> andkm.buttons<1-byte mask>. Lines still terminate with CRLF and the prompt.

Mouse

Individual Buttons (GET/SET)

Command
left([state]) | right([state]) | middle([state]) | side1([state]) | side2([state])
Params
state: 0=release (sends frame), 1=down, 2=silent_release (sets to 0 but doesn't send frame)
Response (GET)
km.left()
>>> 

Returns lock state: 0=none, 1=raw, 2=injected, 3=both.

Response (SET)
km.left(1)
>>> 

Echo ACK (subject to echo(0|1)).

Click Scheduling (SET)

Command
click(button[,count[,delay_ms]])
Params
button: button number; count: click count (optional); delay_ms: delay (optional, defaults to random 35-75ms, internal timing)
Response (SET)
km.click(1,3)
>>> 

Echo ACK.

turbo([button[,delay_ms]]) — GET/SET

Command
turbo([button[,delay_ms]])
Description

Enable rapid-fire mode for mouse buttons. When the button is held down, it automatically triggers rapid press/release cycles at the specified interval. Multiple buttons can have turbo enabled simultaneously, each with its own delay setting.

Params
  • button: 1-5 (mouse buttons: 1=left, 2=right, 3=middle, 4=side1, 5=side2), 0=disable all turbo
  • delay_ms: 1-5000ms (0=disable). If omitted, uses random 35-75ms. The delay is the time between each press/release toggle (e.g., 500ms = press for 500ms, release for 500ms, repeat)
  • Delay is automatically rounded to the mouse endpoint's bInterval for USB synchronization
  • turbo() - Returns only active turbo settings as (m1=200, m2=400) (only shows what's set, not zeros)
  • turbo(button) - Sets turbo with random 35-75ms delay (auto-rounded to bInterval)
  • turbo(button, delay_ms) - Sets turbo with specified delay (auto-rounded to bInterval)
  • turbo(button, 0) - Disables turbo for that specific button
  • turbo(0) - Disables all turbo
Examples
km.turbo(1, 500)
>>> 
km.turbo(2, 250)
>>> 
km.turbo(1)
>>> 
km.turbo()
>>> 

Mouse Movement

move(dx,dy[,segments[,cx1,cy1[,cx2,cy2]]]) — SET

Command
move(dx,dy[,segments[,cx1,cy1[,cx2,cy2]]])
Params

dx,dy: relative move distance; segments: segment count (optional, default 1, max 512); cx1,cy1,cx2,cy2: cubic Bézier control points (optional)

Response (SET)
km.move(10,-3)
>>> 
km.move(100,50,8,40,25,80,10)
>>> 

Echo ACK.

moveto(x,y[,segments[,cx1,cy1[,cx2,cy2]]]) — SET

Command
moveto(x,y[,segments[,cx1,cy1[,cx2,cy2]]])
Description

Move pointer to absolute position. Internally calculates the needed x,y movement to reach the requested position on the screen. Parameters align with km.move().

Params

x,y: absolute coordinates; segments: segment count (optional, default 1, max 512); cx1,cy1,cx2,cy2: cubic Bézier control points (optional)

Response (SET)
km.moveto(640,360)
>>> 
km.moveto(100,50,8,40,25,80,10)
>>> 

Echo ACK.

wheel(delta) — SET

Command
wheel(delta)
Description

Windows does not allow multiple scroll steps in a single command. The delta value is clamped to ±1 step (positive for scroll up, negative for scroll down). Values greater than 1 are treated as 1, values less than -1 are treated as -1.

Params
delta: scroll step (clamped to ±1)
Response (SET)
km.wheel(-1)
>>> 
km.wheel(1)
>>> 

Echo ACK. Note: km.wheel(-5) will only scroll down 1 step, km.wheel(5) will only scroll up 1 step.

pan([steps]) — GET/SET

Command
pan([steps])
Params
steps: horizontal scroll steps (SET); no params to query pending (GET)
Response
km.pan(3)
>>> 

tilt([steps]) — GET/SET

Command
tilt([steps])
Params
steps: tilt/z-axis scroll steps (SET); no params to query pending (GET)
Response
km.tilt(2)
>>> 

getpos() — GET

Command
getpos()
Response (GET)
km.getpos()
>>> km.getpos(123,456)
>>> 

Returns current pointer position as (x,y).

silent(x,y) — SET

Command
silent(x,y)
Params
Move then perform silent left click at (x,y)
Response (SET)
km.silent(400,300)
>>> 

Echo ACK.

Mouse Advanced

mo(buttons,x,y,wheel,pan,tilt) — SET

Command
mo(buttons,x,y,wheel,pan,tilt)
Description

Send complete raw mouse frame (SET only, no GET). (0) clears all; x,y,wheel,pan,tilt are one-shots; button mask mirrors button states.

Params
buttons: button mask; x,y: movement deltas; wheel,pan,tilt: scroll values
Response (SET)
km.mo(1,10,5,0,0,0)
>>> 

lock_<target>(state) — GET/SET

Command Format
lock_<target>([state])
Description

Lock button or axis. The target is part of the command name, not a parameter. state: 1=lock, 0=unlock. Call with `()` to read lock state.

Targets

Buttons: ml/mm/mr/ms1/ms2

  • ml - Left mouse button
  • mm - Middle mouse button
  • mr - Right mouse button
  • ms1 - Side button 1
  • ms2 - Side button 2

Axes: mx/my/mw/mx+/mx-/my+/my-/mw+/mw-

  • mx/my/mw - Full lock (blocks all movement in that axis)
  • mx+/my+/mw+ - Positive direction lock (blocks positive movement only)
  • mx-/my-/mw- - Negative direction lock (blocks negative movement only)
Response (GET)
km.lock_mx()
>>> km.lock_mx(1)
>>> 

Returns: 1=locked, 0=unlocked

Response (SET)
km.lock_mx(1)
>>> 

Lock all X-axis movement

km.lock_mx+(1)
>>> 

Lock only positive X movement (right)

km.lock_mx-(1)
>>> 

Lock only negative X movement (left)

km.lock_my(1)
>>> 

Lock all Y-axis movement

km.lock_mw(1)
>>> 

Lock all wheel movement

km.lock_mw+(1)
>>> 

Lock only positive wheel movement (scroll up)

km.lock_mw-(1)
>>> 

Lock only negative wheel movement (scroll down)

km.lock_ml(1)
>>> 

Lock left mouse button

catch_<target>(mode) — GET/SET

Command Format
catch_<target>([mode])
Description

Enable catch on a locked button. The target is part of the command name, not a parameter. Note: Catch only works for buttons, not axes. Requires corresponding km.lock_<target> to be set first.

Targets
ml, mm, mr, ms1, ms2 (buttons only, not axes)
Params
mode: 0=auto, 1=manual; () returns state
Response (GET)
km.catch_ml()
>>> 

Use `()` to query catch state

Response (SET)
km.catch_ml(1)
>>> 

Enable manual catch for left mouse button

km.catch_ml(0)
>>> 

Enable auto catch for left mouse button

Mouse Remap (Physical)

The following commands only affect physical input, injection is NOT affected. This means you can remap physical mouse buttons and axes, while injected inputs via API will remain unchanged.

remap_button([src,dst]) — GET/SET

Command
remap_button([src,dst])
Description

Remap mouse buttons (physical only). Auto-clears conflicting mappings; both directions can be mapped (swap).

Params
  • () - Show only active mappings, e.g., (left:right,right:left)
  • (0) - Reset all button remaps
  • (src,dst) - Map button src→dst (1=left, 2=right, 3=middle, 4=side1, 5=side2)
  • (src,0) - Clear remap for button src
Examples
km.remap_button()
>>> 
km.remap_button(1,2)
>>> 
km.remap_button(0)
>>> 

remap_axis([inv_x,inv_y,swap]) — GET/SET

Command
remap_axis([inv_x,inv_y,swap])
Description

Remap mouse axes (physical only). Set all three flags at once.

Params
  • () - Show current settings, e.g., (invert_x=0,invert_y=1,swap_xy=0)
  • (0) - Reset all axis remaps
  • (inv_x,inv_y,swap) - Set all three flags (0 or 1)
Examples
km.remap_axis()
>>> 
km.remap_axis(0,1,0)
>>> 
km.remap_axis(0)
>>> 

invert_x([state]) — GET/SET

Command
invert_x([state])
Description
Invert X axis (physical only)
Params
() show; (0) disable; (1) enable
Response
km.invert_x(1)
>>> 

invert_y([state]) — GET/SET

Command
invert_y([state])
Description
Invert Y axis (physical only)
Params
() show; (0) disable; (1) enable
Response
km.invert_y(1)
>>> 

swap_xy([state]) — GET/SET

Command
swap_xy([state])
Description
Swap X and Y axes (physical only)
Params
() show; (0) disable; (1) enable
Response
km.swap_xy(1)
>>> 

Keyboard Commands

Keyboard commands support two formats: numeric HID code (e.g., 4) or string key name (e.g., 'a', "enter"). Supported key names include letters, numbers, function keys, navigation keys, and modifiers. See specification for details.

down(key) — SET

Command
down(key)
Params
key: HID code or quoted string ('a', "shift")
Response (SET)
km.down('shift')
>>> 

up(key) — SET

Command
up(key)
Params
key: HID code or quoted string ('a', "ctrl")
Response (SET)
km.up("ctrl")
>>> 

press(key[,hold_ms[,rand_ms]]) — SET

Command
press(key[,hold_ms[,rand_ms]])
Params
  • key: HID code (0-255) or quoted key name
  • hold_ms: Optional hold duration in milliseconds. If omitted, uses random 35-75ms (value is logged)
  • rand_ms: Optional randomization range added to hold_ms (0 = no randomization)
  • Note: Duration is automatically rounded to the keyboard's bInterval for USB synchronization
Examples
km.press('a')
>>> 

Press 'a' with random 35-75ms hold (logged)

km.press('d', 50)
>>> 

Press 'd' with exactly 50ms hold

km.press('d', 50, 10)
>>> 

Press 'd' with 50ms base + random 0-10ms

string(text) — SET

Command
string(text)
Description

Type an ASCII string using queued key presses with automatic timing. Automatically handles Shift for uppercase letters and symbols. Uses timed queue system (no timer slot limits).

Params
  • text: ASCII string to type (max 256 characters)
  • Each character uses random 35-75ms hold time (internal timing, not logged)
  • Inter-character delay: 10ms between characters
Examples
km.string("Hello")
>>> 
km.string("Test123!")
>>> 
Response (SET)
km.string("hello")
>>> 

init() — SET

Command
init()
Description
Clear keyboard state and release pressed keys
Response (SET)
km.init()
>>> 

isdown(key) — GET

Command
isdown(key)
Params
key: HID code or quoted string ('a', "shift")
Response (GET)
km.isdown("ctrl")
>>> km.isdown(1)
>>> 

Returns 1 if key is down, 0 if released.

disable([key1,key2,...] | [key,mode]) — GET/SET

Command
disable([key1,key2,...] | [key,mode])
Description

Disable/enable keyboard keys to block them from being sent to the host.

Params
  • () - List all currently disabled keys in format (a,c,f,) (shows key names when available, HID codes otherwise)
  • (key1,key2,...) - Disable multiple keys at once. Keys can be HID codes or quoted key names (e.g., 'a', 'f1', 'ctrl')
  • (key,mode) - Enable or disable a single key. mode: 1=disable, 0=enable
Examples
km.disable()
>>> km.disable(a,c,f,)
>>> 
km.disable('a','c','f')
>>> 
km.disable('f1','alt','win')
>>> 
km.disable('a', 0)
>>> 
km.disable('a', 1)
>>> 
km.disable(4,6,9)
>>> 

mask(key[,mode]) — GET/SET

Command
mask(key[,mode])
Params
key: HID code or quoted string; mode: 0=off, 1=on
Response
km.mask('a',1)
>>> 

remap(source,target) — GET/SET

Command
remap(source,target)
Params
source,target: both can be HID code or quoted string; target=0 clears remap (passthrough)
Examples
km.remap('a','b')
>>> 
km.remap('a',0)
>>> 

Complete Keyboard Key Reference

Single character letters are case-sensitive ('a' types lowercase, 'A' types uppercase). Multi-character special keys are case-insensitive ('f1', 'F1', 'ctrl', 'CTRL' all work the same).
Command
press(key)
Description

Complete keyboard key reference table. All keys support HID codes or string names. Single character letters are case-sensitive (lowercase types lowercase, uppercase automatically uses Shift to type uppercase). Multi-character special keys are case-insensitive.

Letters (HID 4-29)
Key NamesHIDNormal OutputShift Output
'a'4aA
'b'5bB
'c'6cC
'd'7dD
'e'8eE
'f'9fF
'g'10gG
'h'11hH
'i'12iI
'j'13jJ
'k'14kK
'l'15lL
'm'16mM
'n'17nN
'o'18oO
'p'19pP
'q'20qQ
'r'21rR
's'22sS
't'23tT
'u'24uU
'v'25vV
'w'26wW
'x'27xX
'y'28yY
'z'29zZ
Response
km.press('a')      # types "a" (HID 4)
km.press('A')      # types "A" (HID 4 + Shift)
Numbers & Shift Variants (HID 30-39)
Key NamesHIDNormal OutputShift Output
'1'301!
'2'312@
'3'323#
'4'334$
'5'345%
'6'356^
'7'367&
'8'378*
'9'389(
'0'390)
Response
km.press('1')      # types "1" (HID 30)
km.down('shift')
km.press('1')      # types "!" (HID 30 + Shift)
km.up('shift')
Control Keys (HID 40-44)
Key NamesHIDNormal OutputShift Output
'enter', 'return'40Enter-
'escape', 'esc'41Escape-
'backspace', 'back'42Backspace-
'tab'43Tab-
'space', 'spacebar'44 -
Response
km.press('enter')  # Enter key (HID 40)
Symbols & Shift Variants (HID 45-57)
Key NamesHIDNormal OutputShift Output
'minus', 'dash', 'hyphen'45-_
'equals', 'equal'46=+
'leftbracket', 'lbracket', 'openbracket'47[{
'rightbracket', 'rbracket', 'closebracket'48]}
'backslash', 'bslash'49\|
'nonus_hash'50#-
'semicolon', 'semi'51;:
'quote', 'apostrophe', 'singlequote'52'"
'grave', 'backtick', 'tilde'53`~
'comma'54,<
'period', 'dot'55.>
'slash', 'forwardslash', 'fslash'56/?
'capslock', 'caps'57Caps Lock-
Response
km.press('minus')  # types "-" (HID 45)
km.down('shift')
km.press('minus')  # types "_" (HID 45 + Shift)
km.up('shift')
Function Keys (HID 58-69)
Key NamesHIDNormal OutputShift Output
'f1'58F1-
'f2'59F2-
'f3'60F3-
'f4'61F4-
'f5'62F5-
'f6'63F6-
'f7'64F7-
'f8'65F8-
'f9'66F9-
'f10'67F10-
'f11'68F11-
'f12'69F12-
Response
km.press('f1')     # F1 key (HID 58)
System Keys (HID 70-83)
Key NamesHIDNormal OutputShift Output
'printscreen', 'prtsc', 'print'70Print Screen-
'scrolllock', 'scroll'71Scroll Lock-
'pause', 'break'72Pause/Break-
'insert', 'ins'73Insert-
'home'74Home-
'pageup', 'pgup'75Page Up-
'delete', 'del'76Delete-
'end'77End-
'pagedown', 'pgdown', 'pgdn'78Page Down-
'right', 'rightarrow'79Right Arrow-
'left', 'leftarrow'80Left Arrow-
'down', 'downarrow'81Down Arrow-
'up', 'uparrow'82Up Arrow-
'numlock', 'num'83Num Lock-
Response
km.press('home')   # Home key (HID 74)
Numpad Keys (HID 84-99)
Key NamesHIDNormal OutputShift Output
'kpdivide', 'npdivide'84/-
'kpmultiply', 'npmultiply'85*-
'kpminus', 'npminus'86--
'kpplus', 'npplus'87+-
'kpenter', 'npenter'88Enter-
'kp1', 'np1'891-
'kp2', 'np2'902-
'kp3', 'np3'913-
'kp4', 'np4'924-
'kp5', 'np5'935-
'kp6', 'np6'946-
'kp7', 'np7'957-
'kp8', 'np8'968-
'kp9', 'np9'979-
'kp0', 'np0'980-
'kpperiod', 'kpdot', 'npperiod', 'npdot'99.-
Response
km.press('kp1')    # Numpad 1 (HID 89)
Modifier Keys (HID 224-231)
Key Names (aliases)HIDNormal OutputShift Output
'leftctrl', 'lctrl', 'leftcontrol', 'lcontrol', 'ctrl', 'control'224Left Ctrl-
'leftshift', 'lshift', 'shift'225Left Shift-
'leftalt', 'lalt', 'alt'226Left Alt-
'leftgui', 'lgui', 'leftwin', 'lwin', 'gui', 'win', 'windows', 'super', 'meta', 'cmd', 'command'227Left GUI-
'rightctrl', 'rctrl', 'rightcontrol', 'rcontrol'228Right Ctrl-
'rightshift', 'rshift'229Right Shift-
'rightalt', 'ralt'230Right Alt-
'rightgui', 'rgui', 'rightwin', 'rwin', 'rightwindows'231Right GUI-

Note: Generic names ('ctrl', 'shift', 'alt', 'gui') default to the left variant

Response
km.down('ctrl')    # Left Ctrl (HID 224)
km.up('ctrl')

Streaming

keyboard([mode[,period]]) — GET/SET

Command
keyboard([mode[,period]])
Description

Stream keyboard keys with human-readable names. Mode 1=raw (physical input), 2=constructed frame (after remapping/masking); period clamped 1-1000 frames.

Params
mode: 1=raw, 2=constructed frame; period: 1-1000 frames; () to query; (0) to disable
Output Format

Output format: keyboard(raw,shift,'h') or keyboard(constructed,ctrl,shift,'a') - modifiers and keys shown as names (e.g., 'shift', 'ctrl', 'h', 'a') instead of HID numbers.

Response (GET)
km.keyboard(2,50)
>>> 
Response (SET)
km.keyboard(1,100)
>>> 

buttons([mode[,period_ms]]) — GET/SET

Command
buttons([mode[,period_ms]])
Params
mode: 1/2 (also 3 from V4.036); (0) to disable. A second argument (period) is accepted and ignored only on the prefixed-stream builds (V4.030 line, V4.036+); V4.032 / V4.035 return ERR for a two-arg km.buttons(mode,period) (tk-0437) — use the single-arg km.buttons(mode).
Response (GET)
km.buttons(2,25)
>>> 
Response (SET)
km.buttons(1,10)
>>> 

When enabled, the device sends an unsolicited button stream (no >>> prompt), formatted per firmware:

V4.030 line / V4.036+ (mode 1/2):  6B 6D 2E <mask_u8> 0D 0A   ("km." + mask + CRLF)
V4.036+ (mode 3):             <mask_u8>                 (bare byte)
V4.024/026/032/035:           <mask_u8>                 (bare byte)
V30:                          DE AD 03 00 53 01 <id> <state>  (0x53 event frame)

axis([mode[,period_ms]]) — GET/SET

Command
axis([mode[,period_ms]])
Params
1=raw, 2=constructed frame; period_ms: 1-1000ms; (0) or (0,0) to reset
Output Format

Output format: raw(x,y,w) or mut(x,y,w) where w is the wheel delta.

Response (GET)
km.axis(1,25)
>>> 
Response (SET)
km.axis(2,10)
>>> 

mouse([mode[,period_ms]]) — GET/SET

Command
mouse([mode[,period_ms]])
Modes
1=raw, 2=constructed frame; period_ms: 1-1000ms; () to query; (0) or (0,0) to reset
Response (GET)
km.mouse(2,25)
>>> 
Response (SET)
km.mouse(1,10)
>>> 
Streaming format

Device emits 8-byte binary frame (x,y as int16):

km.mouse<8 bytes>
>>> 

Misc

help() — GET

Command
help()
Description
Show command list
Response (GET)
km.help()
>>> 

info() — GET

Command
info()
Description
Report system info: MAC address, MCU temperature (when available), RAM stats, firmware info, CPU, and uptime
Response (GET)
km.info()
>>> 

version() — GET

Command
version()
Description
Report firmware version
Response (GET)
km.version()
>>> 

device() — GET

Command
device()
Description
Report which device is used more: (keyboard), (mouse), or (none)
Response (GET)
km.device()
>>> 

fault() — GET

Command
fault()
Description

Returns stored parse fault information including ESP32 MAC address, failed endpoint address, interface number, failure reason, and raw HID descriptor bytes. Useful for debugging devices that fail to parse.

Response (GET)
km.fault()
>>> 

reboot() — SET

Command
reboot()
Description
Reboot device (reboots after response)
Response (SET)
km.reboot()
>>> 

serial([text]) — GET/SET

Command
serial([text])
Description

Used to change the serial number of an attached mouse or keyboard while connected to MAKCU. This change is persistent and remains even after future firmware changes. Note: MAKCU does not allow changing serial numbers for a device that does not contain one.

Params
() to query; (0) to reset; (text) to set sanitized serial value
Response (GET)
km.serial()
>>> km.serial("MAKCU001")
>>> 

Returns current serial number.

Response (SET)
km.serial("MAKCU001")
>>> 
km.serial(0)
>>> 

Echo ACK. The change is persistent across firmware updates.

log([level]) — GET/SET

Command
log([level])
Params
level: 0-5; empty to query current level. Setting persists for 3 power cycles, then disables automatically
Response
km.log(3)
>>> 

echo([enable]) — GET/SET

Command
echo([enable])
Params
enable: 1=on, 0=off; empty to query
Response
km.echo(1)
>>> 

baud([rate]) — GET/SET

Command
baud([rate])
Params
rate: 115200 – 4000000; 0=reset to default 115200; empty to query
Response (GET)
km.baud(115200)
>>> 
Response (SET)
km.baud(921600)
>>> 

Applies immediately; host must re-open serial at new speed.

bypass([mode]) — GET/SET

Command
bypass([mode])
Description

Blocks the mouse endpoint from being sent to USB 1, all other endpoints will pass without issues. Works without USB device attached.

Params
  • () - Query current state
  • (0) - Off (restore USB write, disable telemetry)
  • (1) - Mouse bypass (enables km.mouse(1,1) and disables USB write)
  • (2) - Keyboard bypass (enables km.keyboard(1,1) and disables USB write)
Response (GET)
km.bypass()
>>> km.bypass(0)
>>> 

Warns (no mouse) or (no keyboard) if device not detected

Response (SET)
km.bypass(1)
>>> 
km.bypass(2)
>>> 
km.bypass(0)
>>> 

hs([enable]) — GET/SET

Command
hs([enable])
Description
USB high-speed compatibility for devices that may not report poll rate correctly *persistent
Params
() query; (1/0) enable/disable
Response
km.hs(1)
>>> 

led([target[,mode[,times,delay_ms]]]) — GET/SET

Command
led([target[,mode[,times,delay_ms]]])
Description

Control LED and RGB state for both device and host sides. Supports query, control, and flash functionality.

Query
  • led() - Query device LED state (backward compatible)
  • led(1) - Query device LED state
  • led(2) - Query host LED state (via UART)
  • Returns: (device,off), (device,on), (device,slow_blink), (device,fast_blink), (host,off), (host,on), etc.
Control
  • led(0) - Turn device LED off (backward compatible)
  • led(1) - Turn device LED on (backward compatible, but conflicts with query - use led(1,1) for explicit control)
  • led(1, 0) - Turn device LED off
  • led(1, 1) - Turn device LED on
  • led(2, 0) - Turn host LED off (via UART)
  • led(2, 1) - Turn host LED on (via UART)
  • Target: 1 = device LED, 2 = host LED (USB host side, controlled via UART)
  • Mode: 0 = off, 1 = on
Flash
  • led(1, times, delay_ms) - Flash device LED (e.g., led(1, 3, 200) = 3 flashes at 200ms)
  • led(2, times, delay_ms) - Flash host LED (e.g., led(2, 5, 100) = 5 flashes at 100ms)
  • Flash parameters: times = number of flashes (default 1), delay_ms = delay between flashes in milliseconds (default 100ms, max 5000ms)
Examples
km.led()
>>> km.led(device,on)
>>> 
km.led(2)
>>> km.led(host,off)
>>> 
km.led(1, 0)
>>> 
km.led(2, 1)
>>> 
km.led(1, 3, 200)
>>> 
km.led(2, 5, 100)
>>> 

release([timer_ms]) — GET/SET

Command
release([timer_ms])
Description

Auto-release monitoring system. Continuously monitors independent lock, button, and key states. When the timer expires, it releases only the corresponding values that remain active (not all at once). This setting is persistently saved to storage and automatically enabled on startup/boot. `()` get status (0=disabled, else time ms); `(timer_ms)` set timer 500-300000ms (5 min), (0) disables.

Params
() get status; (timer_ms) set timer 500-300000ms, (0) disables
Response (GET)
km.release()
>>> 
Response (SET)
km.release(5000)
>>> 
km.release(0)
>>> 

screen([W,H]) — GET/SET

Command
screen([width,height])
Params
() to query; (width,height) to set virtual screen size
Response (GET)
km.screen(1920,1080)
>>> 
Response (SET)
km.screen(2560,1440)
>>> 

Baud Rate Change (Legacy)

Purpose
Set UART baud rate using a binary frame (no ASCII command).
Frame
DE AD <lenLE:2> <cmd:0xA5> <baud_rate:LE32>
Example (115200)
DE AD 05 00 A5 00 C2 01 00

Breakdown: DE AD | 05 00(len=5) | A5 (cmd) |00 C2 01 00 (115200 LE)

Availability
Unusable before V4.039. V4.032 / V4.035 have no handler and return FF. V4.030 and V4.036–V4.038 have a handler, but it requires a payload length of 4 (excluding the command byte), whereas the AIO tool sends the whole len=5 frame, so it is rejected (FF) and eats the first byte of the next command that follows (tk-0454). Fixed and reliably usable from V4.039. V30 / V4.024 / V4.026 do not support the frame.

V2 API (Binary)

All binary commands use the same frame structure. The frame format is explained below, and subsequent command examples show only the command byte and payload data.
RX (Host → Device)
  • Frame format: [0x50] [CMD] [LEN_LO] [LEN_HI] [PAYLOAD...]
  • 0x50 - Frame start byte (fixed)
  • CMD - Command byte (0x01-0xFF)
  • LEN_LO / LEN_HI - Payload length in bytes (little-endian, 16-bit)
  • PAYLOAD - Command-specific data (variable length)
TX (Device → Host)
  • Setters: Return [0x50] [CMD] [LEN_LO] [LEN_HI] [status:u8] where 0x00 = OK (success) and 0x01 = ERR (error)
  • Getters: Return [0x50] [CMD] [LEN_LO] [LEN_HI] [PAYLOAD...] with raw value bytes or structured data
  • Streaming: Return raw HID frame bytes (no text formatting) as [0x50] [CMD] [LEN_LO] [LEN_HI] [PAYLOAD...]
  • Data Types: Multi-byte values use little-endian byte order. Example: Query baud rate (command 0xB1, no payload) returns [0x50] [0xB1] [0x04] [0x00] [0x00] [0xC2] [0x01] [0x00] where 0x00C20100 = 115200 (little-endian)
  • In subsequent command examples, we show only: [CMD] [PAYLOAD...]

Mouse

Individual Buttons (GET/SET)

Command
left(0x08) | right(0x11) | middle(0x0A) | side1(0x12) | side2(0x13)
Description
Control individual mouse buttons - state: 0=release 1=down 2=silent_release; get returns: 0=none 1=raw 2=injected 3=both
Params
() to query; (state) set state. state: 0=release (sends frame), 1=down, 2=silent_release (sets to 0 but doesn't send frame)
Response (GET)
[0x08]
Response: [0x08] [state:u8]

Returns lock state: 0=none, 1=raw, 2=injected, 3=both.

Response (SET)
[0x08] [state:u8]
Response: [0x08] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Click Scheduling (SET)

Command
[0x04]
Description
Schedule clicks - button 1-5, count 1-255, delay_ms (0=random 35-75ms)
Params
button: 1-5 (left, right, middle, side1, side2); count: 1-255; delay_ms: delay in ms, 0=random 35-75ms
Response (SET)
[0x04] [button:u8] [count:u8] [delay_ms:u8]
Response: [0x04] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

turbo() (GET/SET)

Command
[0x17]
Description
Rapid-fire for mouse buttons 1-5 - delay: 1-5000ms or (button) for random 35-75ms - (0) disables all
Params
() returns active settings; (button) random delay; (button,delay_ms) set delay; (0) disables all
Response (GET)
[0x17]
Response: [0x17] [btn1-5_delay:u16×5]

Returns 10 bytes: 5 delays (u16 each) for buttons 1-5.

Response (SET)
[0x17] [button:u8] [delay_ms:u16]
Response: [0x17] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Mouse Movement

move(dx,dy[,segments[,cx1,cy1]]) — SET (0x0D)

Command
[0x0D]
Description
Move relative with bezier curve
Params
dx,dy: relative movement (int16); segments: bezier segments; cx1,cy1: control point 1 (int8)
Response (SET)
[0x0D] [x:i16] [y:i16] [segments:u8] [cx1:i8] [cy1:i8]
Response: [0x0D] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

moveto(x,y[,segments[,cx1,cy1[,cx2,cy2]]]) — SET (0x0E)

Command
[0x0E]
Description
Move absolute with bezier curve
Params
x,y: absolute position (int16); segments: bezier segments; cx1,cy1,cx2,cy2: control points (int16)
Response (SET)
[0x0E] [x:i16] [y:i16] [segments:u8] [cx1:i16] [cy1:i16] [cx2:i16] [cy2:i16]
Response: [0x0E] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

wheel(delta) — SET (0x18)

Command
[0x18]
Description
Scroll wheel steps
Params
delta: wheel steps (int8, positive=up, negative=down)
Response (SET)
[0x18] [delta:i8]
Response: [0x18] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

pan([steps]) — GET/SET (0x0F)

Command
[0x0F]
Description
Horizontal scroll/pan steps
Params
() to query pending pan; (steps) set pan steps (int8)
Response (GET)
[0x0F]
Response: [0x0F] [pending:i8]
Response (SET)
[0x0F] [steps:i8]
Response: [0x0F] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

swap_xy([enable]) — GET/SET (0x15)

Command
[0x15]
Description
Swap X and Y axes (physical only) - 0=disable, 1=enable
Params
() to query; (enable) set. enable: 0=disable, 1=enable
Response (GET)
[0x15]
Response: [0x15] [enabled:u8]

Returns 0=disabled, 1=enabled.

Response (SET)
[0x15] [enable:u8]
Response: [0x15] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

tilt([steps]) — GET/SET (0x16)

Command
[0x16]
Description
Tilt/z-axis steps
Params
() to query pending tilt; (steps) set tilt steps (int8)
Response (GET)
[0x16]
Response: [0x16] [pending:i8]
Response (SET)
[0x16] [steps:i8]
Response: [0x16] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

silent(x,y) — SET (0x14)

Command
[0x14]
Description
Move then silent left click
Params
x,y: position to move to (int16)
Response (SET)
[0x14] [x:i16] [y:i16]
Response: [0x14] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Mouse Advanced

catch_<target>([mode]) — GET/SET (0x03)

Command
[0x03]
Description
Catch mode - 0=off, 1=inject, 2=lock
Params
() to query; (mode) set mode. mode: 0=off, 1=inject, 2=lock
Response (GET)
[0x03]
Response: [0x03] [mode:u8]
Response (SET)
[0x03] [mode:u8]
Response: [0x03] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

getpos() — GET (0x05)

Command
[0x05]
Description
Get current mouse position
Params
No parameters
Response (GET)
[0x05]
Response: [0x05] [x:i16] [y:i16]

Returns current pointer position as int16 coordinates.

invert_x([enable]) — GET/SET (0x06)

Command
[0x06]
Description
Invert X axis (physical only) - 0=disable, 1=enable
Params
() to query; (enable) set. enable: 0=disable, 1=enable
Response (GET)
[0x06]
Response: [0x06] [enabled:u8]

Returns 0=disabled, 1=enabled.

Response (SET)
[0x06] [enable:u8]
Response: [0x06] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

invert_y([enable]) — GET/SET (0x07)

Command
[0x07]
Description
Invert Y axis (physical only) - 0=disable, 1=enable
Params
() to query; (enable) set. enable: 0=disable, 1=enable
Response (GET)
[0x07]
Response: [0x07] [enabled:u8]

Returns 0=disabled, 1=enabled.

Response (SET)
[0x07] [enable:u8]
Response: [0x07] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

lock_<target>([state]) — GET/SET (0x09)

Command
[0x09]
Description
Lock button or axis - state: 1=lock, 0=unlock; target is part of command (mx, my, mw, mx+, mx-, my+, my-, mw+, mw-, ml, mm, mr, ms1, ms2)
Params
() to query; (state) set state. state: 1=lock, 0=unlock
Targets
Axes: mx, my, mw (all); mx+, mx-, my+, my-, mw+, mw- (directional); Buttons: ml, mm, mr, ms1, ms2
Response (GET)
[0x09]
Response: [0x09] [locked:u8]

Returns 1=locked, 0=unlocked.

Response (SET)
[0x09] [state:u8]
Response: [0x09] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

mo(buttons,x,y,wheel,pan,tilt) — SET (0x0B)

Command
[0x0B]
Description
Send raw mouse frame - button mask mirrors states, axes are one-shot
Params
buttons: button mask (u8); x,y: position (i16); wheel,pan,tilt: axis values (i8)
Response (SET)
[0x0B] [buttons:u8] [x:i16] [y:i16] [wheel:i8] [pan:i8] [tilt:i8]
Response: [0x0B] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

remap_button([src,dst]) — GET/SET (0x10)

Command
[0x10]
Description
Remap mouse buttons (1-5: left,right,middle,side1,side2); dst=0 clears src
Params
() show mappings; (0) reset all; (src,dst) map button src→dst; (src,0) clear src
Response (GET)
[0x10]
Response: [0x10] [map1-5:u8×2×5]

Returns 10 bytes: 5 mappings, each 2 bytes (src,dst).

Response (SET)
[0x10] [src:u8] [dst:u8]
Response: [0x10] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

remap_axis([inv_x,inv_y,swap]) — GET/SET (0x19)

Command
[0x19]
Description
Remap mouse axes (physical only) - Set all three flags atomically: inv_x, inv_y, swap (each 0=disable, 1=enable)
Params
  • () - Query current settings
  • (0) - Reset all axis remaps
  • (inv_x,inv_y,swap) - Set all three flags (each 0 or 1)
Response (GET)
[0x19]
Response: [0x19] [inv_x:u8] [inv_y:u8] [swap:u8]

Returns 3 bytes: inv_x, inv_y, swap (each 0=disabled, 1=enabled).

Response (SET)
[0x19] [inv_x:u8] [inv_y:u8] [swap:u8]
Response: [0x19] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error. Sets all three flags atomically.

[0x19] [0x00]
Response: [0x19] [status:u8]

Reset all axis remaps (sets all flags to 0).

Keyboard

Keyboard commands use numeric HID codes (u8). Supported HID codes: 0x00-0xFF. See complete key reference for details.

disable([key1,key2,...] | [key,mode]) — GET/SET (0xA1)

Command
[0xA1]
Description
Disable keys - key: HID code - mode: 0=enable 1=disable - can disable multiple keys
Params
() list disabled keys; (key1,key2,...) disable keys; (key,mode) enable/disable single key
Response (GET)
[0xA1]
Response: [0xA1] [disabled_keys:u8×N]

Returns list of disabled HID codes.

Response (SET)
[0xA1] [key1:u8]...[keyN:u8]
Response: [0xA1] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

down(key) — SET (0xA2)

Command
[0xA2]
Description
Press key down
Params
key: HID code (u8)
Response (SET)
[0xA2] [key:u8]
Response: [0xA2] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

init() — SET (0xA3)

Command
[0xA3]
Description
Clear keyboard state
Params
No parameters
Response (SET)
[0xA3]
Response: [0xA3] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

isdown(key) — GET (0xA4)

Command
[0xA4]
Description
Query if key is down
Params
key: HID code (u8)
Response (GET)
[0xA4] [key:u8]
Response: [0xA4] [is_down:u8]

Returns 0=up, 1=down.

mask(key[,mode]) — SET (0xA6)

Command
[0xA6]
Description
Mask key - key: HID code - mode: 0=off 1=on
Params
key: HID code (u8); mode: 0=off, 1=on
Response (SET)
[0xA6] [key:u8] [mode:u8]
Response: [0xA6] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

press(key[,hold_ms[,rand_ms]]) — SET (0xA7)

Command
[0xA7]
Description
Tap key - key: HID code - hold_ms: random 35-85ms if omitted - rand_ms optional
Params
key: HID code (u8); hold_ms: hold time (u8, 0=random 35-85ms); rand_ms: randomization (u8, optional)
Response (SET)
[0xA7] [key:u8] [hold_ms:u8] [rand_ms:u8]
Response: [0xA7] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

remap(source,target) — SET (0xA8)

Command
[0xA8]
Description
Remap keycode - both: HID code; target=0 clears remap (passthrough)
Params
source: source HID code (u8); target: target HID code (u8), 0=clear remap
Response (SET)
[0xA8] [source:u8] [target:u8]
Response: [0xA8] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

string(text) — SET (0xA9)

Command
[0xA9]
Description
Type ASCII string - max 256 chars
Params
text: ASCII bytes (u8×N, max 256 bytes)
Response (SET)
[0xA9] [text:u8×N]
Response: [0xA9] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

up(key) — SET (0xAA)

Command
[0xAA]
Description
Release key
Params
key: HID code (u8)
Response (SET)
[0xAA] [key:u8]
Response: [0xAA] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Streaming

buttons([mode[,period_ms]]) — GET/SET (0x02)

Command
[0x02]
Description
Stream button states - mode: 1=raw 2=mut; period: 1-1000ms (rounded to bInterval); requires baud >= 1M; only emits on new frames
Params
() to query; (mode) set mode; (mode,period_ms) set mode and period. mode: 1=raw 2=mut; period: 1-1000ms
Response (GET)
[0x02]
Response: [0x02] [mode:u8] [period:u8]

Returns current streaming mode and period.

Response (SET)
[0x02] [mode:u8] [period:u8]
Response: [0x02] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Streaming format

Device emits 2-byte binary frame when buttons change:

[0x02] [buttons_lo:u8] [buttons_hi:u8]

Buttons mask: bit 0=left, 1=right, 2=middle, 3=side1, 4=side2

axis([mode[,period_ms]]) — GET/SET (0x01)

Command
[0x01]
Description
Stream x/y/wheel axis deltas - mode: 1=raw 2=mut; period: 1-1000ms (rounded to bInterval); requires baud >= 1M; only emits on new frames
Params
() to query; (mode) set mode; (mode,period_ms) set mode and period. mode: 1=raw 2=mut; period: 1-1000ms
Response (GET)
[0x01]
Response: [0x01] [mode:u8] [period:u8]
Response (SET)
[0x01] [mode:u8] [period:u8]
Response: [0x01] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Streaming format

Device emits 6-byte binary frame when axes change:

[0x01] [dx:i16] [dy:i16] [wheel:i8]

mouse([mode[,period_ms]]) — GET/SET (0x0C)

Command
[0x0C]
Description
Stream full mouse data - mode: 1=raw 2=mut; period: 1-1000ms (rounded to bInterval); requires baud >= 1M; only emits on new frames
Params
() to query; (mode) set mode; (mode,period_ms) set mode and period. mode: 1=raw 2=mut; period: 1-1000ms
Response (GET)
[0x0C]
Response: [0x0C] [mode:u8] [period:u8]
Response (SET)
[0x0C] [mode:u8] [period:u8]
Response: [0x0C] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Streaming format

Device emits 8-byte binary frame when mouse data changes:

[0x0C] [buttons:u8] [dx:i16] [dy:i16] [wheel:i8] [pan:i8] [tilt:i8]

keyboard([mode[,period_ms]]) — GET/SET (0xA5)

Command
[0xA5]
Description
Stream keyboard - mode: 1=raw 2=mut; period: 1-1000ms (rounded to bInterval); requires baud >= 1M; only emits on new frames
Params
() to query; (mode) set mode; (mode,period_ms) set mode and period. mode: 1=raw 2=mut; period: 1-1000ms
Response (GET)
[0xA5]
Response: [0xA5] [mode:u8] [period:u8]
Response (SET)
[0xA5] [mode:u8] [period:u8]
Response: [0xA5] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Streaming format

Device emits 15-byte binary frame when keyboard data changes:

[0xA5] [modifiers:u8] [keys:u8×14]

Modifiers byte: bit flags for ctrl, shift, alt, gui, etc. Keys array: up to 14 HID codes.

Misc

baud([rate]) — GET/SET (0xB1)

Command
[0xB1]
Description
Set/get UART0 baud rate - 0=default (115200)
Params
() to query; (rate) set baud rate (u32), 0=default 115200, range: 115200-4000000
Response (GET)
[0xB1]
Response: [0xB1] [rate:u32]

Returns current baud rate as uint32 (little-endian).

Response (SET)
[0xB1] [rate:u32]
Response: [0xB1] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error. Change is persistent.

bypass([mode]) — GET/SET (0xB2)

Command
[0xB2]
Description
Bypass mode - 0=off, 1=mouse, 2=keyboard; disables USB write, streams raw to COM2
Params
() to query; (mode) set mode. mode: 0=off, 1=mouse, 2=keyboard; requires baud >= 1M
Response (GET)
[0xB2]
Response: [0xB2] [mode:u8]
Response (SET)
[0xB2] [mode:u8]
Response: [0xB2] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

echo([enable]) — GET/SET (0xB4)

Command
[0xB4]
Description
Toggle UART echo
Params
() to query; (enable) set echo. enable: 0=disable, 1=enable
Response (GET)
[0xB4]
Response: [0xB4] [enabled:u8]
Response (SET)
[0xB4] [enable:u8]
Response: [0xB4] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error. When echo is disabled, most setter commands won't echo their input.

hs([enable]) — GET/SET (0xB7)

Command
[0xB7]
Description
USB high-speed compatibility - 0=disable, 1=enable (persistent)
Params
() to query; (enable) set high-speed mode. enable: 0=disable, 1=enable
Response (GET)
[0xB7]
Response: [0xB7] [enabled:u8]
Response (SET)
[0xB7] [enable:u8]
Response: [0xB7] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error. Setting is persistent across reboots.

led([...]) — GET/SET (0xB9)

Command
[0xB9]
Description
LED control - target: 1=device 2=host; mode: 0=off 1=on; state: 0=off 1=on 2=slow_blink 3=fast_blink
Params
() query device; (1) query device; (2) query host; (0) device off; (1) device on; (target,mode) control; (target,times,delay_ms) flash
Response (GET)
Query device: [0xB9]
Query host:   [0xB9] [0x02]
Response:    [0xB9] [target:u8] [state:u8]

State: 0=off, 1=on, 2=slow_blink, 3=fast_blink

Response (SET)
Set:    [0xB9] [target:u8] [mode:u8]
Response: [0xB9] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

Flash
Flash:  [0xB9] [target:u8] [times:u32] [delay_ms:u32]
Response: [0xB9] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error. Controls both LED and RGB. Times: 1-255, delay_ms: 100-5000ms

log([level]) — GET/SET (0xBA)

Command
[0xBA]
Description
Set/get log level - 0-5. Setting persists for 3 power cycles, then disables automatically
Params
() to query; (level) set log level. level: 0-5 (0=none, 5=debug). Setting persists for 3 power cycles, then disables automatically
Response (GET)
[0xBA]
Response: [0xBA] [level:u8]
Response (SET)
[0xBA] [level:u8]
Response: [0xBA] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

release([timer_ms]) — GET/SET (0xBC)

Command
[0xBC]
Description
Auto-release timer - releases all active locks/buttons/keys when expired
Params
() get status; (timer_ms) set timer 500-300000ms (5 min), (0) disables
Response (GET)
[0xBC]
Response: [0xBC] [timer_ms:u32]

Returns 0 if disabled, else time in milliseconds.

Response (SET)
[0xBC] [timer_ms:u32]
Response: [0xBC] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

screen([W,H]) — GET/SET (0xBD)

Command
[0xBD]
Description
Set/get virtual screen dimensions
Params
() to query; (width,height) set virtual screen size (int16)
Response (GET)
[0xBD]
Response: [0xBD] [width:i16] [height:i16]
Response (SET)
[0xBD] [width:i16] [height:i16]
Response: [0xBD] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error.

serial([text]) — GET/SET (0xBE)

Command
[0xBE]
Description
USB serial number operations - ASCII bytes
Params
() to query; (0) to reset; (text) to set sanitized serial value (ASCII bytes)
Response (GET)
[0xBE]
Response: [0xBE] [serial:u8×N]

Returns current serial number as ASCII bytes.

Response (SET)
[0xBE] [text:u8×N]
Response: [0xBE] [status:u8]

Returns 0x00 (OK) on success, 0x01 (ERR) on error. The change is persistent across firmware updates.

device() — GET (0xB3)

Command
[0xB3]
Description
Returns active device type
Params
No parameters
Response (GET)
[0xB3]
Response: [0xB3] [type:u8]

Type: 0=none, 1=keyboard, 2=mouse

fault() — GET (0xB5)

Command
[0xB5]
Description
Get stored parse fault info (same as 0xE8)
Params
No parameters
Response (GET)
[0xB5]
Response: [0xB5] [parse_fault_t struct]

Returns parse_fault_t structure with MAC, endpoint, reason, and raw descriptor bytes.

info() — GET (0xB8)

Command
[0xB8]
Description
System/device info - key=value format: MAC1, MAC2, TEMP, RAM, FW, CPU, UP, VID, PID, VENDOR, MODEL, ORIGINAL_SERIAL, SPOOFED_SERIAL, MOUSE_BINT, KBD_BINT, FAULT
Params
No parameters
Response (GET)
[0xB8]
Response: [0xB8] [field_count:u8] [fields...]

Returns structured binary data with system/device info key-value pairs. Device info cached after first fetch.

reboot() — SET (0xBB)

Command
[0xBB]
Description
Reboot device after response
Params
No parameters
Response (SET)
[0xBB]
Response: [0xBB] [status:u8]

Always returns 0x00 (success). Device reboots after sending response.

version() — GET (0xBF)

Command
[0xBF]
Description
Get firmware version information
Params
No parameters
Response (GET)
[0xBF]
Response: [0xBF] [version:u8×N]

Returns firmware version as ASCII bytes.