Changeset 184 for trunk/nv/io_event.hh


Ignore:
Timestamp:
08/01/13 01:36:03 (12 years ago)
Author:
epyon
Message:
  • io_event - full support for all joystick events
  • gl_window - full implementation for all joystick events
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/io_event.hh

    r132 r184  
    9595        };
    9696
     97        struct joy_button_event
     98        {
     99                /// Joystick ID
     100                sint32 id;
     101                /// Button that is affected
     102                uint8 button;
     103                /// True if pressed
     104                bool pressed;
     105        };
     106
     107        struct joy_axis_event
     108        {
     109                /// Joystick ID
     110                sint32 id;
     111                /// Axis ID
     112                uint8 axis;
     113                /// Value
     114                sint16 value;
     115        };
     116
     117        struct joy_hat_event
     118        {
     119                /// Joystick ID
     120                sint32 id;
     121                /// Hat ID
     122                uint8 hat;
     123                /// Value
     124                sint16 value;
     125        };
     126
     127        struct joy_ball_event
     128        {
     129                /// Joystick ID
     130                sint32 id;
     131                /// Ball ID
     132                uint8 ball;
     133                /// Relative X
     134                sint16 rx;
     135                /// Relative Y
     136                sint16 ry;
     137        };
     138
    97139        struct resize_event
    98140        {
     
    124166                        mouse_button_event mbutton;
    125167                        mouse_move_event   mmove;
     168                        joy_button_event   jbutton;
     169                        joy_axis_event     jaxis;
     170                        joy_hat_event      jhat;
     171                        joy_ball_event     jball;
    126172                        resize_event       resize;
    127173                        active_event       active;
Note: See TracChangeset for help on using the changeset viewer.