4 * Copyright (C) 2013 Samsung Electronics Co., Ltd. All rights reserved.
7 * Kitae Kim <kt920.kim@samsung.com>
8 * SeokYeon Hwang <syeon.hwang@samsung.com>
9 * MunKyu Im <munkyu.im@samsung.com>
10 * GiWoong Kim <giwoong.kim@samsung.com>
11 * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32 #import <Cocoa/Cocoa.h>
33 #import <AppKit/NSEvent.h>
35 #include "emul_state.h"
37 /* retrieves the status of the host lock key */
38 int get_host_lock_key_state_darwin(int key)
40 /* support only capslock */
41 if (key == HOST_CAPSLOCK_KEY) {
42 return ((NSAlphaShiftKeyMask & [NSEvent modifierFlags]) ? 1 : 0);
43 } else if (key == HOST_NUMLOCK_KEY) {