1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 22:50:23 +00:00

Replace cout with std::cout

This commit is contained in:
Samuel Gomes 2023-09-25 06:06:13 +05:30
parent 8822967d45
commit 6287b4364f

View file

@ -41,7 +41,7 @@ void onButtonDown(struct Gamepad_device *device, unsigned int buttonID, double t
if (verbose) {
sprintf(verboseMessage, "Button %u down on device %u at %f with context %p\n", buttonID, device->deviceID, timestamp, context);
cout << verboseMessage;
std::cout << verboseMessage;
}
int button = buttonID;
@ -89,7 +89,7 @@ void onButtonDown(struct Gamepad_device *device, unsigned int buttonID, double t
void onButtonUp(struct Gamepad_device *device, unsigned int buttonID, double timestamp, void *context) {
if (verbose) {
sprintf(verboseMessage, "Button %u up on device %u at %f with context %p\n", buttonID, device->deviceID, timestamp, context);
cout << verboseMessage;
std::cout << verboseMessage;
}
int button = buttonID;
@ -116,7 +116,7 @@ void onAxisMoved(struct Gamepad_device *device, unsigned int axisID, float value
if (verbose) {
sprintf(verboseMessage, "Axis %u moved from %f to %f on device %u at %f with context %p\n", axisID, lastValue, value, device->deviceID, timestamp,
context);
cout << verboseMessage;
std::cout << verboseMessage;
}
int axis = axisID;
@ -155,7 +155,7 @@ void onDeviceAttached(struct Gamepad_device *device, void *context) {
if (verbose) {
sprintf(verboseMessage, "Device ID %u attached (vendor = 0x%X; product = 0x%X) with context %p\n", device->deviceID, device->vendorID,
device->productID, context);
cout << verboseMessage;
std::cout << verboseMessage;
}
int i, x, x2;
@ -228,7 +228,7 @@ void onDeviceAttached(struct Gamepad_device *device, void *context) {
void onDeviceRemoved(struct Gamepad_device *device, void *context) {
if (verbose) {
sprintf(verboseMessage, "Device ID %u removed with context %p\n", device->deviceID, context);
cout << verboseMessage;
std::cout << verboseMessage;
}
int i;