pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/input dummy_axis.hxx,NONE,1.1 dummy_b


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input dummy_axis.hxx,NONE,1.1 dummy_button.hxx,NONE,1.1 dummy_pointer.hxx,NONE,1.1
Date: 10 Jul 2002 14:06:08 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv10904

Added Files:
        dummy_axis.hxx dummy_button.hxx dummy_pointer.hxx 
Log Message:
dummy class for controller


--- NEW FILE: dummy_axis.hxx ---
//  $Id: dummy_axis.hxx,v 1.1 2002/07/10 14:06:06 torangan Exp $
// 
//  Pingus - A free Lemmings clone
//  Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
// 
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#ifndef HEADER_PINGUS_INPUT_DUMMY_AXIS_HXX
#define HEADER_PINGUS_INPUT_DUMMY_AXIS_HXX

#include "axis.hxx"

namespace Input
{
  class DummyAxis : public Axis {
  
    public:
  
      virtual float get_pos ()    { return 0; }
      virtual float get_angle ()  { return 0; }
      virtual void  update(float) { }
  };
}

#endif

/* EOF */

--- NEW FILE: dummy_button.hxx ---
//  $Id: dummy_button.hxx,v 1.1 2002/07/10 14:06:06 torangan Exp $
// 
//  Pingus - A free Lemmings clone
//  Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
// 
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#ifndef HEADER_PINGUS_INPUT_DUMMY_BUTTON_HXX
#define HEADER_PINGUS_INPUT_DUMMY_BUTTON_HXX

#include "button.hxx"

namespace Input
{
  class DummyButton : public Button  {
    public:

      virtual bool is_pressed ()  { return false; }
      virtual void update (float) { }
  };
}

#endif

/* EOF */

--- NEW FILE: dummy_pointer.hxx ---
//  $Id: dummy_pointer.hxx,v 1.1 2002/07/10 14:06:06 torangan Exp $
// 
//  Pingus - A free Lemmings clone
//  Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
// 
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#ifndef HEADER_PINGUS_INPUT_DUMMY_POINTER_HXX
#define HEADER_PINGUS_INPUT_DUMMY_POINTER_HXX

#include "pointer.hxx"

namespace Input
{
  class DummyPointer : public Pointer {
  
    public:

      virtual float get_x_pos () { return 0; }
      virtual float get_y_pos () { return 0; }
      virtual void  set_pos (float, float) { }
      virtual void  update (float)         { }
  };
}

#endif

/* EOF */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]