Path: blob/master/thirdparty/sdl/joystick/apple/SDL_mfijoystick_c.h
9913 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2025 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/20#include "SDL_internal.h"2122#ifndef SDL_JOYSTICK_IOS_H23#define SDL_JOYSTICK_IOS_H2425#include "../SDL_sysjoystick.h"2627#import <CoreFoundation/CoreFoundation.h>28#import <Foundation/Foundation.h>2930@class GCController;3132typedef struct joystick_hwdata33{34GCController __unsafe_unretained *controller;35void *rumble;36int pause_button_index;37Uint64 pause_button_pressed;3839char *name;40SDL_Joystick *joystick;41SDL_JoystickID instance_id;42SDL_GUID guid;4344int naxes;45int nbuttons;46int nhats;47Uint32 button_mask;48bool is_xbox;49bool is_ps4;50bool is_ps5;51bool is_switch_pro;52bool is_switch_joycon_pair;53bool is_switch_joyconL;54bool is_switch_joyconR;55bool is_stadia;56bool is_backbone_one;57int is_siri_remote;5859NSArray __unsafe_unretained *axes;60NSArray __unsafe_unretained *buttons;6162bool has_dualshock_touchpad;63bool has_xbox_paddles;64bool has_xbox_share_button;65bool has_nintendo_buttons;6667struct joystick_hwdata *next;68} joystick_hwdata;6970typedef joystick_hwdata SDL_JoystickDeviceItem;7172#endif // SDL_JOYSTICK_IOS_H737475