Skip to content

Commit 51f727d

Browse files
committed
Fix return type for connected function
'bool' is not 'boolean'
1 parent e454767 commit 51f727d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extras/XInputUSB_API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Here is the C++ API header in all of its glory:
1919

2020
class XInputUSB {
2121
public:
22-
static bool connected(void);
22+
static boolean connected(void);
2323
static uint8_t available(void);
2424
static int send(const void *buffer, uint8_t nbytes);
2525
static int recv(void *buffer, uint8_t nbytes);
@@ -33,7 +33,7 @@ Note the `USB_XINPUT` preprocessor definition. This definition is what tells the
3333
3434
The API consists of five core static functions of the `XInputUSB` class that pass the USB data back and forth from the bus to the library. Here is the breakdown:
3535
36-
### bool connected(void)
36+
### boolean connected(void)
3737
3838
The `connected` function returns the state of the USB interface with respect to XInput. If the device is connected to a host and functional this should return `true`. If the device is disconnected this should return `false`.
3939

0 commit comments

Comments
 (0)