OldSchool Library 1.5.1
Loading...
Searching...
No Matches
OSL_KEYLIST Union Reference

List of keys. More...

#include <keys.h>

Data Fields

struct { 
 
   int   select: 1 
 Select button.
 
   int   reserved1: 2 
 Reserved for padding, do not use.
 
   int   start: 1 
 Start button.
 
   int   up: 1 
 Up on the D-pad.
 
   int   right: 1 
 Right on the D-pad.
 
   int   down: 1 
 Down on the D-pad.
 
   int   left: 1 
 Left on the D-pad.
 
   int   L: 1 
 L shoulder button.
 
   int   R: 1 
 R shoulder button.
 
   int   reserved2: 2 
 Reserved for padding, do not use.
 
   int   triangle: 1 
 Triangle button.
 
   int   circle: 1 
 Circle button.
 
   int   cross: 1 
 Cross button.
 
   int   square: 1 
 Square button.
 
   int   home: 1 
 Home button (may not work).
 
   int   hold: 1 
 Hold button (power switch in the opposite direction).
 
   int   reserved3: 5 
 Reserved for padding, do not use.
 
   int   note: 1 
 Note button (may not work).
 
};  
 Individual button bits, ordered as in the value field.
 
unsigned int value
 32-bit value containing all keys.
 

Detailed Description

List of keys.

This union represents the state of the buttons on a controller.


The documentation for this union was generated from the following file: