File: ui.h

package info (click to toggle)
ale-clone 1.15pre16.3-1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 2,432 kB
  • ctags: 3,217
  • sloc: ansic: 37,483; sh: 1,105; makefile: 343
file content (62 lines) | stat: -rw-r--r-- 1,689 bytes parent folder | download
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
59
60
61
62
/*
**	A clone of a famous game.
*/
/**@name ui.h		-	The user interface header file. */
/*
**	(c) Copyright 1999 by Lutz Sammer
**
**	$Id: ui.h,v 1.5 1999/12/03 09:18:08 root Exp $
*/

#ifndef __UI_H__
#define __UI_H__

//@{

// FIXME: this only the start of the new user interface
// FIXME: all user interface variables should go here and be configurable

/*----------------------------------------------------------------------------
--	Definitons
----------------------------------------------------------------------------*/

/**
**	Defines the SVGALIB mouse speed adjust (must be > 0)
*/
#define MOUSEADJUST 15

#define MOUSESCALE 1

/**
**	Defines the new user interface.
*/
typedef struct _ui_ {
// FIXME: could use different sounds/speach for the errors 
// Is in gamesounds?
//    SoundConfig	PlacementError;		/// played on placements errors
//    SoundConfig	PlacementSuccess;	/// played on placements success
//    SoundConfig	Click;			/// click noice used often

      unsigned		ReverseMouseMove;	/// Middle mouse button map move with reversed directions
      int		WarpX;
      int		WarpY;

      int		MouseAdjust;		/// Mouse speed adjust
      int		MouseScale;		/// Mouse speed scale
} UI;

/*----------------------------------------------------------------------------
--	Variables
----------------------------------------------------------------------------*/

extern UI TheUI;				/// The user interface

/*----------------------------------------------------------------------------
--	Functions
----------------------------------------------------------------------------*/

extern void UserInterfaceCclRegister(void);	/// register ccl features

//@}

#endif	// !__UI_H__