~ubuntu-branches/ubuntu/natty/plee-the-bear/natty

« back to all changes in this revision

Viewing changes to bear-engine/core/src/input/mouse.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  Bear Engine
3
3
 
4
 
  Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
  Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
  This program is free software; you can redistribute it and/or modify it
7
7
  under the terms of the GNU General Public License as published by the
56
56
    public:
57
57
      mouse();
58
58
 
59
 
      static const std::string& get_name_of( mouse_code b );
60
 
      static void set_name_of( mouse_code k, const std::string& s );
 
59
      static std::string get_name_of( mouse_code b );
 
60
      static std::string get_translated_name_of( mouse_code b );
 
61
      static mouse_code get_button_named( const std::string& n );
61
62
 
62
63
      const_iterator begin() const;
63
64
      const_iterator end() const;
72
73
#include "input/mouse_codes.hpp"
73
74
 
74
75
    private:
 
76
      void update_position();
75
77
      mouse_code sdl_button_to_local( unsigned int sdl_val ) const;
76
78
 
77
 
      void default_mouse_code_strings();
78
 
 
79
79
    private:
80
80
      /** \brief Pressed buttons. */
81
81
      std::list<mouse_code> m_pressed_buttons;
82
82
 
83
 
      /** \brief Human-readable names for each joy_code. */
84
 
      static std::vector<std::string> s_button_strings;
85
 
 
86
83
      /** \brief Position of the cursor. */
87
84
      claw::math::coordinate_2d<unsigned int> m_position;
88
85