ShiftState: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
(style, see also, added example)
Line 1: Line 1:
Shift state is an integer value specifying set of keys currently pressed. It can be a combination (i.e. binary OR) of any of the following values:
Shift state is an integer value specifying set of keys currently pressed. It can be a combination (i.e. binary OR) of any of the following values:


:0 ... <Nothing>
* '''0''': (none of keys or buttons below pressed)
:1 ... WinKey
* '''1''': Win key
:2 ... Shift
* '''2''': Shift key
:4 ... Alt
* '''4''': Alt key
:8 ... Ctrl
* '''8''': Ctrl key
:16 ... Left mouse
* '''16''': Left mouse button
:32 ... Right mouse
* '''32''': Right mouse button
:64 ... Middle mouse
* '''64''': Middle mouse button
 
E.g. When User presses <tt>Ctrl+Alt+T</tt>, ''ShiftState'' is <tt>12</tt>, which is <tt>4|8</tt>.
 
=== See Also ===
 
*[[ISDBUICommonEvents::OnKeyDown]]
*[[ISDBUICommonEvents::OnKeyUp]]
*[[ISDBUICommonEvents::OnMouseDown]]
*[[ISDBUICommonEvents::OnMouseUp]]
*[[ISDBUICommonEvents::OnMouseMove]]

Revision as of 21:56, 20 April 2013

Shift state is an integer value specifying set of keys currently pressed. It can be a combination (i.e. binary OR) of any of the following values:

  • 0: (none of keys or buttons below pressed)
  • 1: Win key
  • 2: Shift key
  • 4: Alt key
  • 8: Ctrl key
  • 16: Left mouse button
  • 32: Right mouse button
  • 64: Middle mouse button

E.g. When User presses Ctrl+Alt+T, ShiftState is 12, which is 4|8.

See Also