3
3
// ledutil.c - Win32 example code that tracks changing
4
4
// outputs and updates the keyboard LEDs in response
6
// Copyright Nicola Salmoria and the MAME Team.
7
// Visit http://mamedev.org for licensing and usage restrictions.
6
//============================================================
8
// Copyright Aaron Giles
9
// All rights reserved.
11
// Redistribution and use in source and binary forms, with or
12
// without modification, are permitted provided that the
13
// following conditions are met:
15
// * Redistributions of source code must retain the above
16
// copyright notice, this list of conditions and the
17
// following disclaimer.
18
// * Redistributions in binary form must reproduce the
19
// above copyright notice, this list of conditions and
20
// the following disclaimer in the documentation and/or
21
// other materials provided with the distribution.
22
// * Neither the name 'MAME' nor the names of its
23
// contributors may be used to endorse or promote
24
// products derived from this software without specific
25
// prior written permission.
27
// THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND
28
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
30
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
31
// EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
32
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
// DAMAGE (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
35
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
36
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
39
// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9
41
//============================================================