~sil2100/nux/precise_sru-1

« back to all changes in this revision

Viewing changes to NuxGraphics/Events.h

  • Committer: Didier Roche
  • Date: 2012-02-17 10:28:35 UTC
  • mfrom: (159.3.34)
  • Revision ID: didier.roche@canonical.com-20120217102835-7fyqcabz0vad239t
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
#define NUX_EXT_Control_R   (0xff00 | NUX_VK_CONTROL)
78
78
#define NUX_EXT_Alt_R       (0xff00 | NUX_VK_MENU)
79
79
 
 
80
#define NUX_KP_DOWN         0xFF99
 
81
#define NUX_KP_UP           0xFF97
 
82
#define NUX_KP_LEFT         0xFF96
 
83
#define NUX_KP_RIGHT        0xFF98
 
84
 
80
85
// #define NUX_KP_PAGE_UP     (0xff00 | NUX_VK_PAGE_UP)
81
86
// #define NUX_KP_PAGE_DOWN   (0xff00 | NUX_VK_PAGE_DOWN)
82
87
// #define NUX_KP_END         (0xff00 | NUX_VK_END)
83
88
// #define NUX_KP_HOME        (0xff00 | NUX_VK_HOME)
84
 
// #define NUX_KP_LEFT        (0xff00 | NUX_VK_LEFT)
85
 
// #define NUX_KP_UP          (0xff00 | NUX_VK_UP)
86
 
// #define NUX_KP_RIGHT       (0xff00 | NUX_VK_RIGHT)
87
 
// #define NUX_KP_DOWN        (0xff00 | NUX_VK_DOWN)
88
 
// 
89
89
// #define NUX_KP_INSERT      (0xff00 | NUX_VK_INSERT)
90
90
// #define NUX_KP_DELETE      (0xff00 | NUX_VK_DELETE)
91
91
 
266
266
  //! Returns index of the mouse button that triggered an event.
267
267
  /*!
268
268
      Given the mouse button states of and event, returns the index of the button that
269
 
      triggered an event. The index of the left mouse button is 1 and the index for the right 
 
269
      triggered an event. The index of the left mouse button is 1 and the index for the right
270
270
      mouse button is 2. If 0 is returned, then a mouse button didn't triggered the event.
271
271
 
272
272
      @param button_state The mouse button states of an event.
284
284
      @return True is the button is pressed. False otherwise.
285
285
  */
286
286
  bool GetButtonState(unsigned long button_state, MouseButton button);
287
 
    
 
287
 
288
288
  //! Returns the state of a special key: CTRL, Shift, Alt, NumLock...
289
289
  /*!
290
290
      Given the key modifiers states of and event, returns the state of a key modifier.
328
328
    //! Returns index of the mouse button that triggered this event.
329
329
    /*!
330
330
        Returns the index of the button that triggered this event.
331
 
        The index of the left mouse button is 1 and the index for the right 
 
331
        The index of the left mouse button is 1 and the index for the right
332
332
        mouse button is 2. If 0 is returned, then a mouse button didn't triggered the event.
333
333
 
334
334
        @return The button that triggered the event.
386
386
    int clicks;
387
387
    int is_click;
388
388
 
 
389
#if defined(NUX_OS_WINDOWS)
 
390
    int win32_keycode; // Not used. Just a place holder.
 
391
    int win32_keysym;
 
392
#endif
 
393
 
389
394
#if defined(NUX_OS_LINUX)
390
395
    Time          x11_timestamp;  //!< X11 timestamp.
391
396
    Window        x11_window;     //!< X11 window.