Advertisement
smokex

Untitled

Jul 2nd, 2025 (edited)
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.50 KB | None | 0 0
  1.     case KeyMap::K70_CORE_RGB:{
  2.             map = getMap(KeyMap::K70, layout);
  3.             map.remove("mute");
  4.             map["lock"] = {nullptr, "Lock", "lock", 20, 2, NS, false, true}; // F1 alternate
  5.             map["profswitch"] = {nullptr, "Profile Switch", "profswitch", 32, 2, 11, 11, false, true}; // F2 alternate
  6.             map["light"] = {nullptr, "Light", "light", 50, 2, NS, false, true}; // F3 and F4 alternate
  7.             map["stop"] = {nullptr, "Stop", "stop", 76, 2, 11, 11, false, true}; // F5 alternate
  8.             map["prev"] = { nullptr,  "Previous", "prev", 88, 2, 11, 11, false, true}; // F6 alternate
  9.             map["play"] = { nullptr,  "Play", "play", 100, 2, 11, 11, false, true}; // F7 alternate
  10.             map["next"] = { nullptr,  "Next", "next", 112, 2, 11, 11, false, true}; // F8 alternate
  11.             map["ctrlwheelb"] = {nullptr, "Wheel", "ctrlwheelb", 168, 2, NS, false, true}; // F12 alternate
  12.  
  13.             // This is the media button that defaults to play
  14.             // We already have a play Fn button so we want to map it to something else so it can be programmed
  15.             map["mr"] = { nullptr,  "?", "?", 227, 14, 16, 11, false, true};
  16.  
  17.             // K70 Core RGB has a volume knob that can be pressed
  18.             map["dialpress"] = {nullptr,  "Mute", "mute",  259, 14, NS, false, true};
  19.  
  20.             // Replace rwin with Fn
  21.             map["fn"] = KStrafeKeys[3];
  22.             map["fn"].x = map["rwin"].x;
  23.             map.remove("rwin");
  24.             break;
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement