mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 12:14:54 +01:00
Initial Xinput ISteamInput/ISteamController support.
This commit is contained in:
parent
4db580d945
commit
2af93427fe
12 changed files with 1814 additions and 56 deletions
|
|
@ -87,6 +87,8 @@ bool GetImageSize( int iImage, uint32 *pnWidth, uint32 *pnHeight )
|
|||
{
|
||||
PRINT_DEBUG("GetImageSize %i\n", iImage);
|
||||
if (!iImage || !pnWidth || !pnHeight) return false;
|
||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||
|
||||
auto image = settings->images.find(iImage);
|
||||
if (image == settings->images.end()) return false;
|
||||
|
||||
|
|
@ -102,6 +104,8 @@ bool GetImageRGBA( int iImage, uint8 *pubDest, int nDestBufferSize )
|
|||
{
|
||||
PRINT_DEBUG("GetImageRGBA %i\n", iImage);
|
||||
if (!iImage || !pubDest || !nDestBufferSize) return false;
|
||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||
|
||||
auto image = settings->images.find(iImage);
|
||||
if (image == settings->images.end()) return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue