Commit | Line | Data |
8fde61e3 |
1 | #!/usr/bin/perl -w |
2 | # |
3 | # Copyright (C) 2003 Tels |
4 | # Copyright (C) 2004 David J. Goehrig |
5 | # |
7b6a53a1 |
6 | # Copyright (C) 2005 David J. Goehrig <dgoehrig\@cpan.org> |
7 | # |
8 | # ------------------------------------------------------------------------------ |
9 | # |
10 | # This library is free software; you can redistribute it and/or |
11 | # modify it under the terms of the GNU Lesser General Public |
12 | # License as published by the Free Software Foundation; either |
13 | # version 2.1 of the License, or (at your option) any later version. |
14 | # |
15 | # This library is distributed in the hope that it will be useful, |
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
18 | # Lesser General Public License for more details. |
19 | # |
20 | # You should have received a copy of the GNU Lesser General Public |
21 | # License along with this library; if not, write to the Free Software |
22 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
23 | # |
24 | # ------------------------------------------------------------------------------ |
25 | # |
26 | # Please feel free to send questions, suggestions or improvements to: |
27 | # |
28 | # David J. Goehrig |
29 | # dgoehrig\@cpan.org |
30 | # |
31 | # |
8fde61e3 |
32 | # basic testing of SDL::Event |
33 | |
34 | BEGIN { |
35 | unshift @INC, 'blib/lib','blib/arch'; |
36 | } |
37 | |
38 | use strict; |
39 | |
40 | use Test::More; |
41 | |
42 | plan ( tests => 2 ); |
43 | |
44 | use_ok( 'SDL::Event' ); |
45 | |
46 | can_ok ('SDL::Event', qw/ |
47 | new |
48 | type |
49 | pump |
50 | poll |
51 | wait |
52 | set |
53 | set_unicode |
54 | set_key_repeat |
55 | active_gain |
56 | active_state |
57 | key_state |
58 | key_sym |
59 | key_name |
60 | key_mod |
61 | key_unicode |
62 | key_scancode |
63 | motion_state |
64 | motion_x |
65 | motion_y |
66 | motion_xrel |
67 | motion_yrel |
68 | button |
69 | button_state |
70 | button_x |
7b6a53a1 |
71 | button_y /); |
8fde61e3 |
72 | |
73 | |
74 | |