Classes | Typedefs | Enumerations | Functions

wit Namespace Reference

Classes

class  Application
class  Console
class  Event
class  InputEvent
class  ButtonEvent
class  JoystickEvent
class  AnalogEvent
class  MotionEvent
class  PointerEvent
class  PointerLeaveEvent
class  EventHandler
class  FontSymbol
class  Font
class  Point
class  Rect
class  Polygon
class  Hotspot
class  Renderer
class  Widget

Typedefs

typedef std::vector< Hotspot * > HotspotList

Enumerations

enum  AppFeatures {
  NoFeatures = 0, UseWiiRemote = 1, UseGameCube = 2, UseSound = 4,
  UseFAT = 8, UseGX = 16, UseConsole = 32, UseJoysticks = 64,
  UsePointer = 128, UseMotion = 256, UseDoubleBuffer = 512, AllFeatures
}
enum  ShutdownMode { Shutdown_Auto, Shutdown_Idle, Shutdown_Standby }
enum  Button {
  Button_None = 0, Button_Up, Button_Down, Button_Left,
  Button_Right, Button_1, Button_2, Button_A,
  Button_B, Button_C, Button_X, Button_Y,
  Button_Z, Button_ZL, Button_ZR, Button_LClick,
  Button_RClick, Button_Minus, Button_Plus, Button_Home,
  Button_Start, Button_Max, Button_Yellow = Button_1, Button_Green = Button_2,
  Button_Blue = Button_A, Button_Red = Button_B, Button_Orange = Button_C
}
enum  Controller {
  WiiRemote, Nunchuk, Classic, Guitar,
  BalanceBoard, GameCube
}
enum  AnalogButton {
  Analog_Left, Analog_Right, Analog_A, Analog_B,
  Analog_Whammy = Analog_Left
}

Functions

ApplicationwitApp ()
template<typename T >
witAbs (T n)

Typedef Documentation

typedef std::vector<Hotspot*> wit::HotspotList

Definition at line 12 of file hotspot.h.


Enumeration Type Documentation

Enumerator:
Analog_Left 

L button on the Classic Controller or GameCube controller

Analog_Right 

R button on the Classic Controller or GameCube controller

Analog_A 

A button on the GameCube controller

Analog_B 

B button on the GameCube controller

Analog_Whammy 

Whammy bar on the Guitar

Definition at line 71 of file wit.h.

Used to select which application features to enable. It is strongly recommended to only enable the features that the application will use to reduce event processing overhead.

Enumerator:
NoFeatures 

Do not enable any features.

UseWiiRemote 

Enable the use of Wii Remotes.

UseGameCube 

Enable the use of GameCube controllers.

UseSound 

Enable the use of sound.

UseFAT 

Enable the use of a FAT filesystem on the SD card.

UseGX 

Enable the GX rendering engine.

UseConsole 

Enable the text console. (Note, incompatible with UseDoubleBuffer; see wit::Console)

UseJoysticks 

Enable tracking the analog joysticks on Nunchuks, Classic Controllers, and GameCube controllers.

UsePointer 

Enable tracking the infrared sensor on Wii Remotes.

UseMotion 

Enable tracking the motion sensor on Wii Remotes and Nunchuks.

UseDoubleBuffer 

Enable double buffering.

AllFeatures 

Enable all features.

Definition at line 10 of file wit.h.

Enumerator:
Button_None 

No button

Button_Up 

Up arrow on the D-pad, or strumming up on the Guitar

Button_Down 

Down arrow on the D-pad, or strumming down on the Guitar

Button_Left 

Left arrow on the D-pad

Button_Right 

Right arrow on the D-pad

Button_1 

1 button on the Wii Remote

Button_2 

2 button on the Wii Remote

Button_A 

A button on the Wii Remote, Classic Controller, or GameCube controller

Button_B 

B button on the Wii Remote, Classic Controller, or GameCube controller

Button_C 

C button on the Nunchuk

Button_X 

X button on the Classic Controller or GameCube controller

Button_Y 

Y button on the Classic Controller or GameCube controller

Button_Z 

Z button on the Nunchuk or GameCube controller

Button_ZL 

ZL button on the Classic Controller

Button_ZR 

ZR button on the Classic Controller

Button_LClick 

Fully depressed L button on the Classic Controller or GameCube controller

Button_RClick 

Fully depressed R button on the Classic Controller or GameCube controller

Button_Minus 

Minus button on the Wii Remote, Classic Controller, or Guitar

Button_Plus 

Plus button on the Wii Remote, Classic Controller, or Guitar

Button_Home 

Home button on the Wii Remote or Classic Controller

Button_Start 

Start button on the GameCube controller

Button_Max 

A value greater than all button values

Button_Yellow 

Yellow button on the Guitar

Button_Green 

Green button on the Guitar

Button_Blue 

Blue button on the Guitar

Button_Red 

Red button on the Guitar

Button_Orange 

Orange button on the Guitar

Definition at line 32 of file wit.h.

Enumerator:
WiiRemote 

The event was generated by a Wii Remote.

Nunchuk 

The event was generated by a Nunchuk.

Classic 

The event was generated by a Classic Controller.

Guitar 

The event was generated by a Guitar Hero 3 controller.

BalanceBoard 

The event was generated by a Balance Board.

GameCube 

The event was generated by a GameCube controller.

Definition at line 62 of file wit.h.

Enumerator:
Shutdown_Auto 

Automatically use Shutdown_Idle or Shutdown_Standby based on the Wii system settings.

Shutdown_Idle 

Put the Wii in idle mode, with WiiConnect24 disabled (red LED).

Shutdown_Standby 

Put the Wii in standby mode, with WiiConnect24 enabled (yellow LED).

Definition at line 26 of file wit.h.


Function Documentation

template<typename T >
T wit::witAbs ( n ) [inline]

Returns the absolute value of the parameter. Supports any numeric type.

This function is also available in the global namespace.

Definition at line 86 of file wit.h.

Application* wit::witApp (  ) [inline]

Returns a pointer to the Application object.

This is a convenience function equivalent to wit::Application::instance().

This function is also available in the global namespace.

See also:
Application

Definition at line 73 of file application.h.