src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cc
/**
 * \brief Convert X11 modifiers to Java user-defined ones.
 * \param modfiers X11 modifiers
 * \return Java user-defined modifiers
 */
\brief Convert X11 modifiers to Java user-defined ones.
\param modfiers X11 modifiers
\return Java user-defined modifiers
\ brief Convert X11 modifiers to Java user - defined ones . \ param modfiers X11 modifiers \ return Java user - defined modifiers
static int X11ModifiersToJavaUserDefined(int modifiers)
{
  int javaModifiers = 0;
  if(modifiers & ControlMask)
  {
    javaModifiers |= 0x01;
  }
  if(modifiers & Mod1Mask)
  {
    javaModifiers |= 0x02;
  }
  if(modifiers & ShiftMask)
  {
    javaModifiers |= 0x04;
  }
  if(modifiers & Mod4Mask)
  {
    javaModifiers |= 0x08;
  }
  return javaModifiers;
}
static int X11ModifiersToJavaUserDefined ( int modifiers ) { int javaModifiers = 0 ; if ( modifiers & ControlMask ) { javaModifiers |= 0x01 ; } if ( modifiers & Mod1Mask ) { javaModifiers |= 0x02 ; } if ( modifiers & ShiftMask ) { javaModifiers |= 0x04 ; } if ( modifiers & Mod4Mask ) { javaModifiers |= 0x08 ; } return javaModifiers ; }
\brief Convert X11 modifiers to Java user-defined ones.
\ brief Convert X11 modifiers to Java user - defined ones .
/* Alt */ /* Super */