BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
CfgNesCtrl Class Reference

Configuration for the NES controller. More...

#include <nesctrl.h>

Public Attributes

s16 left_pix = 8
 
s16 top_pix = 160
 
s16 radius_pix = 4
 
u8 img_utile = B8_PPU_MAX_WTILE - 8
 
u8 img_vtile = B8_PPU_MAX_HTILE - 16
 
u8 img_pal = 1
 
u8 clear_color = B8_PPU_COLOR_BLACK
 
bool debug_visual = false
 

Detailed Description

Configuration for the NES controller.

This class holds the configuration settings for the NES controller, including the position, size, and appearance of the controller on the screen.

Member Data Documentation

◆ clear_color

u8 CfgNesCtrl::clear_color = B8_PPU_COLOR_BLACK

Clear color for the background.

◆ debug_visual

bool CfgNesCtrl::debug_visual = false

Enable or disable debug visualization.

◆ img_pal

u8 CfgNesCtrl::img_pal = 1

Palette index for the controller image.

◆ img_utile

u8 CfgNesCtrl::img_utile = B8_PPU_MAX_WTILE - 8

Tile coordinate for image loading (horizontal).

◆ img_vtile

u8 CfgNesCtrl::img_vtile = B8_PPU_MAX_HTILE - 16

Tile coordinate for image loading (vertical).

◆ left_pix

s16 CfgNesCtrl::left_pix = 8

X-coordinate offset in pixels.

◆ radius_pix

s16 CfgNesCtrl::radius_pix = 4

Radius for touch detection in pixels.

◆ top_pix

s16 CfgNesCtrl::top_pix = 160

Y-coordinate offset in pixels.


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