summaryrefslogtreecommitdiff
path: root/tvision/include/tv/alcon/mouse.h
blob: 9c4c0b4df2ea0dddbd9ae5f2e9a370983e86f232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*****************************************************************************

  Copyright (c) 2003-2004 by Grzegorz Adam Hankiewicz
  Copyright (c) 2002-2009 by Salvador E. Tropea (SET) <set@ieee.org>
  
  AlCon driver for Turbo Vision. It uses the conio.h emulation library on top
  of Allegro.

  Contributed by Grzegorz Adam Hankiewicz <gradha@hankiewicz.datanet.co.uk>

  This is part of Turbo Vision ditribution and covered by the same license.

*****************************************************************************/

// For more information look in event.h
#ifndef ALCONMOUSE_HEADER_INCLUDED
#define ALCONMOUSE_HEADER_INCLUDED

#ifdef HAVE_ALLEGRO

class THWMouseAlcon : public THWMouse
{
public:
 // Setup the pointers to point our members
 static void Init();

protected:
 // Note that even contructor/destructor are protected
 // Usually nothing goes here and the initialization code goes in Init()
 THWMouseAlcon() {};
 // Here you can put the code needed to restore the state of the machine
 // before initialization. Be very careful we the order and avoid doble
 // deinitializations.
 virtual ~THWMouseAlcon();

 // Function replacements
 // Make the mouse cursor visible
 static void Show();
 // Make the mouse cursor invisible
 static void Hide();
 // Put the mouse in the original state
 static void Suspend();
 // Memorize current state and setup our state
 static void Resume();
 // Get a mouse event and fill the structure. If no mouse event is available
 // fill the structure with the same data you used last time.
 static void GetEvent(MouseEventType &me);

 // The setup of the pointers to point our members is done in Init()
 // Don't forget to setup buttonCount or the class will say the mouse isn't
 // present.

 // Put support routines and variables here
};

#endif // HAVE_ALLEGRO
#endif // ALCONMOUSE_HEADER_INCLUDED