llvm-mos-sdk
Public Attributes | List of all members
JoyState Struct Reference

Status of SNES joystick populated by cx16_k_joystick_get();. More...

#include <cx16.h>

Public Attributes

union {
   struct {
      unsigned char   data0
 Bits: B Y Select Start Up Down Left Right. More...
 
      unsigned char   data1
 Bits: A X FireL FireR 1 1 1 1. More...
 
   } 
 
   unsigned short   data
 data0 and data1 combined More...
 
}; 
 
bool detached
 True if joystick is disconnected. More...
 

Detailed Description

Status of SNES joystick populated by cx16_k_joystick_get();.

Member Data Documentation

◆ @95

union { ... }

◆ data

unsigned short JoyState::data

data0 and data1 combined

◆ data0

unsigned char JoyState::data0

Bits: B Y Select Start Up Down Left Right.

◆ data1

unsigned char JoyState::data1

Bits: A X FireL FireR 1 1 1 1.

◆ detached

bool JoyState::detached

True if joystick is disconnected.


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