~ubuntu-branches/ubuntu/maverick/tvtime/maverick

« back to all changes in this revision

Viewing changes to src/input.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon Law
  • Date: 2004-01-13 18:00:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040113180036-h996q67t476jymsu
Tags: upstream-0.9.12
ImportĀ upstreamĀ versionĀ 0.9.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright (C) 2002 Doug Bell <drbell@users.sourceforge.net>
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2, or (at your option)
 
7
 * any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 */
 
18
 
 
19
#ifndef INPUT_H_INCLUDED
 
20
#define INPUT_H_INCLUDED
 
21
 
 
22
#ifdef __cplusplus
 
23
extern "C" {
 
24
#endif
 
25
 
 
26
#include "tvtimeconf.h"
 
27
#include "console.h"
 
28
#include "commands.h"
 
29
 
 
30
typedef struct input_s input_t;
 
31
 
 
32
/* Input events. */
 
33
enum input_event
 
34
{
 
35
    I_NOOP,
 
36
    I_KEYDOWN,
 
37
    I_QUIT,
 
38
    I_BUTTONPRESS,
 
39
    I_BUTTONRELEASE,
 
40
    I_MOUSEMOVE,
 
41
    I_REMOTE
 
42
};
 
43
 
 
44
input_t *input_new( config_t *cfg, commands_t *com, console_t *con, int verbose );
 
45
void input_delete( input_t *in );
 
46
void input_callback( input_t *in, int command, int arg );
 
47
 
 
48
#ifdef __cplusplus
 
49
};
 
50
#endif
 
51
#endif /* INPUT_H_INCLUDED */