mirror of
https://github.com/nefarius/ViGEmBus.git
synced 2026-12-05 19:47:56 +00:00
Bugfix in sample code
This commit is contained in:
1 parent
1e9e45e0ea
commit
e293709f94
1 file changed
+3
-3
@@ -71,7 +71,7 @@ const auto client = vigem_alloc();
|
||||
|
||||
if (client == nullptr)
|
||||
{
|
||||
std::cerr << L"Uh, not enough memory to do that?!" << std::endl;
|
||||
std::cerr << "Uh, not enough memory to do that?!" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
```
|
||||
@@ -83,7 +83,7 @@ const auto retval = vigem_connect(client);
|
||||
|
||||
if (!VIGEM_SUCCESS(retval))
|
||||
{
|
||||
std::cerr << L"ViGEm Bus connection failed with error code: 0x" << std::hex << retval << std::endl;
|
||||
std::cerr << "ViGEm Bus connection failed with error code: 0x" << std::hex << retval << std::endl;
|
||||
return -1;
|
||||
}
|
||||
```
|
||||
@@ -110,7 +110,7 @@ const auto pir = vigem_target_add(client, pad);
|
||||
//
|
||||
if (!VIGEM_SUCCESS(pir))
|
||||
{
|
||||
std::cerr << L"Target plugin failed with error code: 0x" << std::hex << retval << std::endl;
|
||||
std::cerr << "Target plugin failed with error code: 0x" << std::hex << retval << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user