mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 14:49:40 +00:00
GDK build: fix Xbox targets
This commit is contained in:
committed by
Ozkan Sezer
parent
7e48d4522b
commit
ff66ec5fb5
@@ -1004,6 +1004,7 @@ static SDL_bool SkipAltGrLeftControl(WPARAM wParam, LPARAM lParam)
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||
// Here is a trick: "Alt Gr" sends LCTRL, then RALT. We only
|
||||
// want the RALT message, so we try to see if the next message
|
||||
// is a RALT message. In that case, this is a false LCTRL!
|
||||
@@ -1018,6 +1019,8 @@ static SDL_bool SkipAltGrLeftControl(WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES) */
|
||||
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
@@ -2299,10 +2302,10 @@ void WIN_PumpEvents(SDL_VideoDevice *_this)
|
||||
|
||||
WIN_CheckKeyboardAndMouseHotplug(_this, SDL_FALSE);
|
||||
|
||||
#endif /*!defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)*/
|
||||
|
||||
WIN_UpdateIMECandidates(_this);
|
||||
|
||||
#endif /*!defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)*/
|
||||
|
||||
#ifdef SDL_PLATFORM_GDK
|
||||
GDK_DispatchTaskQueue();
|
||||
#endif
|
||||
|
||||
@@ -345,6 +345,7 @@ typedef struct
|
||||
void *data;
|
||||
} TSFSink;
|
||||
|
||||
#ifndef SDL_DISABLE_WINDOWS_IME
|
||||
/* Definition from Win98DDK version of IMM.H */
|
||||
typedef struct tagINPUTCONTEXT2
|
||||
{
|
||||
@@ -370,6 +371,7 @@ typedef struct tagINPUTCONTEXT2
|
||||
DWORD fdwInit;
|
||||
DWORD dwReserve[3];
|
||||
} INPUTCONTEXT2, *PINPUTCONTEXT2, NEAR *NPINPUTCONTEXT2, FAR *LPINPUTCONTEXT2;
|
||||
#endif
|
||||
|
||||
/* Private display data */
|
||||
|
||||
@@ -458,8 +460,10 @@ struct SDL_VideoData
|
||||
SDL_bool ime_horizontal_candidates;
|
||||
#endif
|
||||
|
||||
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||
COMPOSITIONFORM ime_composition_area;
|
||||
CANDIDATEFORM ime_candidate_area;
|
||||
#endif /* !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES) */
|
||||
|
||||
#ifndef SDL_DISABLE_WINDOWS_IME
|
||||
HKL ime_hkl;
|
||||
|
||||
Reference in New Issue
Block a user