Initial Xinput ISteamInput/ISteamController support.

This commit is contained in:
Mr_Goldberg 2019-09-10 14:54:54 -04:00
parent 4db580d945
commit 2af93427fe
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
12 changed files with 1814 additions and 56 deletions

View file

@ -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;