daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jul 10th, 2018 73 in 12 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Modifier overrides (US ANSI)
  2. const uint16_t HIDOverrideMap[][2] = {
  3.   { ( KEY_MOD_SHIFT << 8 ) | 0x1f, ( KEY_MOD_SHIFT << 8 ) | 0x1B } // Shift 2 -> Shift `
  4. };
  5.  
  6. // ....  
  7.  
  8.   uint16_t unOverrideKey = ( (uint16_t)sm_unModifiersCollapsed << 8 ) | unKey;
  9.   for( uint8_t i=0; i<sizeof( HIDOverrideMap ); i++ )
  10.   {
  11.     if( HIDOverrideMap[i][0] == unOverrideKey )
  12.     {
  13.       tr->xcode = HIDOverrideMap[i][1];
  14.       tr->xmodifier = HIDOverrideMap[i][1] >> 8;
  15.     }
  16.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top