src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cpp
/**
 * \brief Convert Windows modifiers to our Java user-defined ones.
 * \param modifiers Windows modifiers (MOD_CONTROL, ...)
 * \return Java user-defined modifiers
 */
\brief Convert Windows modifiers to our Java user-defined ones.
\ brief Convert Windows modifiers to our Java user - defined ones .
static int convertWindowsModifiersToJavaUserDefined(int modifiers)
{ 
  int javaModifiers = 0;
  if(modifiers & MOD_CONTROL)
  {
    javaModifiers |= 0x01;
  }
  if(modifiers & MOD_ALT)
  {
    javaModifiers |= 0x02;
  }
  if(modifiers & MOD_SHIFT)
  {
    javaModifiers |= 0x04;
  }
  if(modifiers & MOD_WIN)
  {
    javaModifiers |= 0x08;
  }
  return javaModifiers;
}
static int convertWindowsModifiersToJavaUserDefined ( int modifiers ) { int javaModifiers = 0 ; if ( modifiers & MOD_CONTROL ) { javaModifiers |= 0x01 ; } if ( modifiers & MOD_ALT ) { javaModifiers |= 0x02 ; } if ( modifiers & MOD_SHIFT ) { javaModifiers |= 0x04 ; } if ( modifiers & MOD_WIN ) { javaModifiers |= 0x08 ; } return javaModifiers ; }
\brief Convert Windows modifiers to our Java user-defined ones.
\ brief Convert Windows modifiers to our Java user - defined ones .
/* CTRL */ /* ALT */ /* SHIFT */ /* LOGO */