[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/input Makefile.am,NONE,1.1 axis.cxx,N
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/input Makefile.am,NONE,1.1 axis.cxx,NONE,1.1 axis.hxx,NONE,1.1 button.cxx,NONE,1.1 button.hxx,NONE,1.1 pointer.cxx,NONE,1.1 pointer.hxx,NONE,1.1 |
Date: |
3 Jul 2002 16:53:59 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv15131
Added Files:
Makefile.am axis.cxx axis.hxx button.cxx button.hxx
pointer.cxx pointer.hxx
Log Message:
framework code for input
--- NEW FILE: Makefile.am ---
# Pingus - A free Lemmings clone
# Copyright (C) 1999 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.
noinst_LIBRARIES = libpingus_input.a
libpingus_input_a_SOURCES = \
button.hxx button.cxx \
axis.hxx axis.cxx \
pointer.hxx pointer.cxx
# EOF #
--- NEW FILE: axis.cxx ---
// $Id: axis.cxx,v 1.1 2002/07/03 16:53:57 grumbel 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.
#include "axis.hxx"
/* EOF */
--- NEW FILE: axis.hxx ---
// $Id: axis.hxx,v 1.1 2002/07/03 16:53:57 grumbel 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 AXIS_HXX
#define AXIS_HXX
namespace Input
{
class Axis
{
private:
public:
virtual float get_pos () =0;
virtual float get_angle () =0;
};
}
#endif
/* EOF */
--- NEW FILE: button.cxx ---
// $Id: button.cxx,v 1.1 2002/07/03 16:53:57 grumbel 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.
#include "button.hxx"
using namespace Input;
void
Button::update (float delta)
{
}
/* EOF */
--- NEW FILE: button.hxx ---
// $Id: button.hxx,v 1.1 2002/07/03 16:53:57 grumbel 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_BUTTON_HXX
#define HEADER_PINGUS_INPUT_BUTTON_HXX
#include <queue>
namespace Input
{
class Button
{
public:
enum Event { BUTTON_PRESSED, BUTTON_RELEASED, BUTTON_CLICKED,
BUTTON_DOUBLECLICKED };
protected:
std::queue<enum Event> events;
public:
Event peek_event () { return events.front (); }
Event pop_event () { Event e = peek_event (); events.pop (); return e; }
void update (float delta);
bool is_pressed ();
};
}
#endif
/* EOF */
--- NEW FILE: pointer.cxx ---
// $Id: pointer.cxx,v 1.1 2002/07/03 16:53:57 grumbel 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.
#include "pointer.hxx"
/* EOF */
--- NEW FILE: pointer.hxx ---
// $Id: pointer.hxx,v 1.1 2002/07/03 16:53:57 grumbel 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_POINTER_HXX
#define HEADER_PINGUS_INPUT_POINTER_HXX
namespace Input
{
class Pointer
{
private:
public:
int get_x_pos ();
int get_y_pos ();
};
}
#endif
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/input Makefile.am,NONE,1.1 axis.cxx,NONE,1.1 axis.hxx,NONE,1.1 button.cxx,NONE,1.1 button.hxx,NONE,1.1 pointer.cxx,NONE,1.1 pointer.hxx,NONE,1.1,
grumbel <=