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