1*d97d5c0cSVladimir Kondratyev /*- 2*d97d5c0cSVladimir Kondratyev * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3*d97d5c0cSVladimir Kondratyev * 4*d97d5c0cSVladimir Kondratyev * Copyright (c) 2020 Vladimir Kondratyev <wulf@FreeBSD.org> 5*d97d5c0cSVladimir Kondratyev * Copyright (c) 2020 Greg V <greg@unrelenting.technology> 6*d97d5c0cSVladimir Kondratyev * 7*d97d5c0cSVladimir Kondratyev * Redistribution and use in source and binary forms, with or without 8*d97d5c0cSVladimir Kondratyev * modification, are permitted provided that the following conditions 9*d97d5c0cSVladimir Kondratyev * are met: 10*d97d5c0cSVladimir Kondratyev * 1. Redistributions of source code must retain the above copyright 11*d97d5c0cSVladimir Kondratyev * notice, this list of conditions and the following disclaimer. 12*d97d5c0cSVladimir Kondratyev * 2. Redistributions in binary form must reproduce the above copyright 13*d97d5c0cSVladimir Kondratyev * notice, this list of conditions and the following disclaimer in the 14*d97d5c0cSVladimir Kondratyev * documentation and/or other materials provided with the distribution. 15*d97d5c0cSVladimir Kondratyev * 16*d97d5c0cSVladimir Kondratyev * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17*d97d5c0cSVladimir Kondratyev * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18*d97d5c0cSVladimir Kondratyev * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*d97d5c0cSVladimir Kondratyev * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20*d97d5c0cSVladimir Kondratyev * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21*d97d5c0cSVladimir Kondratyev * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22*d97d5c0cSVladimir Kondratyev * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23*d97d5c0cSVladimir Kondratyev * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24*d97d5c0cSVladimir Kondratyev * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25*d97d5c0cSVladimir Kondratyev * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26*d97d5c0cSVladimir Kondratyev * SUCH DAMAGE. 27*d97d5c0cSVladimir Kondratyev */ 28*d97d5c0cSVladimir Kondratyev 29*d97d5c0cSVladimir Kondratyev #ifndef _HID_HGAME_H_ 30*d97d5c0cSVladimir Kondratyev #define _HID_HGAME_H_ 31*d97d5c0cSVladimir Kondratyev 32*d97d5c0cSVladimir Kondratyev #include <dev/hid/hidmap.h> 33*d97d5c0cSVladimir Kondratyev 34*d97d5c0cSVladimir Kondratyev hidmap_cb_t hgame_dpad_cb; 35*d97d5c0cSVladimir Kondratyev hidmap_cb_t hgame_final_cb; 36*d97d5c0cSVladimir Kondratyev 37*d97d5c0cSVladimir Kondratyev struct hgame_softc { 38*d97d5c0cSVladimir Kondratyev struct hidmap hm; 39*d97d5c0cSVladimir Kondratyev bool dpad_up; 40*d97d5c0cSVladimir Kondratyev bool dpad_down; 41*d97d5c0cSVladimir Kondratyev bool dpad_right; 42*d97d5c0cSVladimir Kondratyev bool dpad_left; 43*d97d5c0cSVladimir Kondratyev }; 44*d97d5c0cSVladimir Kondratyev 45*d97d5c0cSVladimir Kondratyev #endif /* !_HGAME_H_ */ 46