Creates an ArrowPad object.  
 More...
#include <ArrowPad.h>
Creates an ArrowPad object. 
- Author
 - Jamie Slowgrove 
 
 
      
        
          | JAM_ArrowPad::JAM_ArrowPad  | 
          ( | 
          float  | 
          x,  | 
        
        
           | 
           | 
          float  | 
          y,  | 
        
        
           | 
           | 
          float  | 
          width,  | 
        
        
           | 
           | 
          float  | 
          height,  | 
        
        
           | 
           | 
          SDL_Renderer *  | 
          renderer  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs the Button object. 
- Parameters
 - 
  
    | x | The x position of the Button.  | 
    | y | The y position of the Button.  | 
    | width | The width of the Button.  | 
    | height | The height of the Button.  | 
    | renderer | A pointer to the SDL Renderer.  | 
  
   
 
 
      
        
          | JAM_ArrowPad::~JAM_ArrowPad  | 
          ( | 
           | ) | 
           | 
        
      
 
Destructs the ArrowPad object. 
 
 
      
        
          | void JAM_ArrowPad::draw  | 
          ( | 
          SDL_Renderer *  | 
          renderer | ) | 
           | 
        
      
 
Draws the ArrowPad to the screen. 
- Parameters
 - 
  
    | renderer | A pointer to the SDL renderer.  | 
  
   
 
 
      
        
          | bool JAM_ArrowPad::getDown  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # Gets the value of the down command. 
- Returns
 - The value of the down command. 
 
 
 
      
        
          | bool JAM_ArrowPad::getLeft  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # Gets the value of the left command. 
- Returns
 - The value of the left command. 
 
 
 
      
        
          | bool JAM_ArrowPad::getRight  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # Gets the value of the right command. 
- Returns
 - The value of the right command. 
 
 
 
      
        
          | bool JAM_ArrowPad::getUp  | 
          ( | 
           | ) | 
           | 
        
      
 
Getter # Gets the value of the up command. 
- Returns
 - The value of the up command. 
 
 
 
      
        
          | void JAM_ArrowPad::input  | 
          ( | 
          SDL_Event &  | 
          incomingEvent | ) | 
           | 
        
      
 
A function that updates the ArrowPad. 
- Parameters
 - 
  
    | incomingEvent | A reference to the incoming event.  | 
  
   
 
 
  
  
      
        
          | bool JAM_ArrowPad::downCmd | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool JAM_ArrowPad::leftCmd | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool JAM_ArrowPad::rightCmd | 
         
       
   | 
  
private   | 
  
 
 
The commands for the user. 
 
 
The documentation for this class was generated from the following files: