Stepper Motor Control with Arcade Joystick

Hi Ash

I get these errors when I try to upload the sketch to the arduino:

Bounce_Example:14: error: expected unqualified-id before numeric constant
Bounce_Example.ino: In function 'void loop()':
Bounce_Example:36: error: request for member 'update' in '1', which is of non-class type 'int'
Bounce_Example:39: error: request for member 'Read' in '1', which is of non-class type 'int'
Bounce_Example:40: error: 'class Bounce' has no member named 'Read'
Bounce_Example:46: error: 'spr' was not declared in this scope
Bounce_Example:53: error: 'spr' was not declared in this scope

I did donwload the library to my Arduino folder's libraries folder under ..\Bounce\Bounce.h

Here is the code as I tried to use it:

#include <Bounce.h>
#include <Stepper.h>
const int num_step = 50; // motor steps per revolution
const int pwm_cha = 3;
const int pwm_chb = 11;
const int dir_cha = 12;
const int dir_chb = 13;
const int brake_cha = 9;
const int brake_chb = 8;
const int Pin1=4;
const int Pin2=5;

Stepper stepper(num_step, dir_cha, dir_chb);
Bounce B1 = Bounce(Pin1,5);
Bounce B2 = Bounce(Pin2,5);

void setup()
{
Serial.begin(9600);
pinMode(pwm_cha, OUTPUT);
pinMode(pwm_chb, OUTPUT);
pinMode(brake_cha, OUTPUT);
pinMode(brake_chb, OUTPUT);
digitalWrite(pwm_cha, HIGH);
digitalWrite(pwm_chb, HIGH);
digitalWrite(brake_cha, LOW);
digitalWrite(brake_chb, LOW);
pinMode(Pin1,INPUT);
pinMode(Pin2,INPUT);
digitalWrite(Pin1,HIGH);
digitalWrite(Pin2,HIGH);
}

void loop()
{
B1.update ( );
B2.update ( );

int ValB1=!B1.Read();
int ValB2=!B2.Read();

if (ValB1 &&!ValB2)
{
digitalWrite(pwm_cha, HIGH);
digitalWrite(pwm_chb, HIGH);
stepper.step(spr);
stepper.setSpeed(400);}

if(!ValB1&&ValB2)
{
digitalWrite(pwm_cha, HIGH);
digitalWrite(pwm_chb, HIGH);
stepper.step(-spr);
stepper.setSpeed(400);}

if(!ValB1 && !ValB2)
{
digitalWrite(pwm_cha, LOW);
digitalWrite(pwm_chb, LOW);}
}

Any ideas what the problem might be?