SDL 3.0
SDL_hidapi.h
Go to the documentation of this file.
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22/* WIKI CATEGORY: HIDAPI */
23
24/**
25 * # CategoryHIDAPI
26 *
27 * Header file for SDL HIDAPI functions.
28 *
29 * This is an adaptation of the original HIDAPI interface by Alan Ott, and
30 * includes source code licensed under the following license:
31 *
32 * ```
33 * HIDAPI - Multi-Platform library for
34 * communication with HID devices.
35 *
36 * Copyright 2009, Alan Ott, Signal 11 Software.
37 * All Rights Reserved.
38 *
39 * This software may be used by anyone for any reason so
40 * long as the copyright notice in the source files
41 * remains intact.
42 * ```
43 *
44 * (Note that this license is the same as item three of SDL's zlib license, so
45 * it adds no new requirements on the user.)
46 *
47 * If you would like a version of SDL without this code, you can build SDL
48 * with SDL_HIDAPI_DISABLED defined to 1. You might want to do this for
49 * example on iOS or tvOS to avoid a dependency on the CoreBluetooth
50 * framework.
51 */
52
53#ifndef SDL_hidapi_h_
54#define SDL_hidapi_h_
55
56#include <SDL3/SDL_stdinc.h>
57#include <SDL3/SDL_error.h>
58
59#include <SDL3/SDL_begin_code.h>
60/* Set up for C function definitions, even when using C++ */
61#ifdef __cplusplus
62extern "C" {
63#endif
64
65/**
66 * An opaque handle representing an open HID device.
67 *
68 * \since This struct is available since SDL 3.2.0.
69 */
71
72/**
73 * HID underlying bus types.
74 *
75 * \since This enum is available since SDL 3.2.0.
76 */
77typedef enum SDL_hid_bus_type {
78 /** Unknown bus type */
80
81 /** USB bus
82 Specifications:
83 https://usb.org/hid */
85
86 /** Bluetooth or Bluetooth LE bus
87 Specifications:
88 https://www.bluetooth.com/specifications/specs/human-interface-device-profile-1-1-1/
89 https://www.bluetooth.com/specifications/specs/hid-service-1-0/
90 https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/ */
92
93 /** I2C bus
94 Specifications:
95 https://docs.microsoft.com/previous-versions/windows/hardware/design/dn642101(v=vs.85) */
97
98 /** SPI bus
99 Specifications:
100 https://www.microsoft.com/download/details.aspx?id=103325 */
102
104
105/** hidapi info structure */
106
107/**
108 * Information about a connected HID device
109 *
110 * \since This struct is available since SDL 3.2.0.
111 */
113{
114 /** Platform-specific device path */
115 char *path;
116 /** Device Vendor ID */
117 unsigned short vendor_id;
118 /** Device Product ID */
119 unsigned short product_id;
120 /** Serial Number */
122 /** Device Release Number in binary-coded decimal,
123 also known as Device Version Number */
124 unsigned short release_number;
125 /** Manufacturer String */
127 /** Product string */
129 /** Usage Page for this Device/Interface
130 (Windows/Mac/hidraw only) */
131 unsigned short usage_page;
132 /** Usage for this Device/Interface
133 (Windows/Mac/hidraw only) */
134 unsigned short usage;
135 /** The USB interface which this logical device
136 represents.
137
138 Valid only if the device is a USB HID device.
139 Set to -1 in all other cases.
140 */
142
143 /** Additional information about the USB interface.
144 Valid on libusb and Android implementations. */
148
149 /** Underlying bus type */
151
152 /** Pointer to the next device */
154
156
157
158/**
159 * Initialize the HIDAPI library.
160 *
161 * This function initializes the HIDAPI library. Calling it is not strictly
162 * necessary, as it will be called automatically by SDL_hid_enumerate() and
163 * any of the SDL_hid_open_*() functions if it is needed. This function should
164 * be called at the beginning of execution however, if there is a chance of
165 * HIDAPI handles being opened by different threads simultaneously.
166 *
167 * Each call to this function should have a matching call to SDL_hid_exit()
168 *
169 * \returns 0 on success or a negative error code on failure; call
170 * SDL_GetError() for more information.
171 *
172 * \since This function is available since SDL 3.2.0.
173 *
174 * \sa SDL_hid_exit
175 */
176extern SDL_DECLSPEC int SDLCALL SDL_hid_init(void);
177
178/**
179 * Finalize the HIDAPI library.
180 *
181 * This function frees all of the static data associated with HIDAPI. It
182 * should be called at the end of execution to avoid memory leaks.
183 *
184 * \returns 0 on success or a negative error code on failure; call
185 * SDL_GetError() for more information.
186 *
187 * \since This function is available since SDL 3.2.0.
188 *
189 * \sa SDL_hid_init
190 */
191extern SDL_DECLSPEC int SDLCALL SDL_hid_exit(void);
192
193/**
194 * Check to see if devices may have been added or removed.
195 *
196 * Enumerating the HID devices is an expensive operation, so you can call this
197 * to see if there have been any system device changes since the last call to
198 * this function. A change in the counter returned doesn't necessarily mean
199 * that anything has changed, but you can call SDL_hid_enumerate() to get an
200 * updated device list.
201 *
202 * Calling this function for the first time may cause a thread or other system
203 * resource to be allocated to track device change notifications.
204 *
205 * \returns a change counter that is incremented with each potential device
206 * change, or 0 if device change detection isn't available.
207 *
208 * \since This function is available since SDL 3.2.0.
209 *
210 * \sa SDL_hid_enumerate
211 */
212extern SDL_DECLSPEC Uint32 SDLCALL SDL_hid_device_change_count(void);
213
214/**
215 * Enumerate the HID Devices.
216 *
217 * This function returns a linked list of all the HID devices attached to the
218 * system which match vendor_id and product_id. If `vendor_id` is set to 0
219 * then any vendor matches. If `product_id` is set to 0 then any product
220 * matches. If `vendor_id` and `product_id` are both set to 0, then all HID
221 * devices will be returned.
222 *
223 * By default SDL will only enumerate controllers, to reduce risk of hanging
224 * or crashing on bad drivers, but SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS
225 * can be set to "0" to enumerate all HID devices.
226 *
227 * \param vendor_id the Vendor ID (VID) of the types of device to open, or 0
228 * to match any vendor.
229 * \param product_id the Product ID (PID) of the types of device to open, or 0
230 * to match any product.
231 * \returns a pointer to a linked list of type SDL_hid_device_info, containing
232 * information about the HID devices attached to the system, or NULL
233 * in the case of failure. Free this linked list by calling
234 * SDL_hid_free_enumeration().
235 *
236 * \since This function is available since SDL 3.2.0.
237 *
238 * \sa SDL_hid_device_change_count
239 */
240extern SDL_DECLSPEC SDL_hid_device_info * SDLCALL SDL_hid_enumerate(unsigned short vendor_id, unsigned short product_id);
241
242/**
243 * Free an enumeration linked list.
244 *
245 * This function frees a linked list created by SDL_hid_enumerate().
246 *
247 * \param devs pointer to a list of struct_device returned from
248 * SDL_hid_enumerate().
249 *
250 * \since This function is available since SDL 3.2.0.
251 */
252extern SDL_DECLSPEC void SDLCALL SDL_hid_free_enumeration(SDL_hid_device_info *devs);
253
254/**
255 * Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally
256 * a serial number.
257 *
258 * If `serial_number` is NULL, the first device with the specified VID and PID
259 * is opened.
260 *
261 * \param vendor_id the Vendor ID (VID) of the device to open.
262 * \param product_id the Product ID (PID) of the device to open.
263 * \param serial_number the Serial Number of the device to open (Optionally
264 * NULL).
265 * \returns a pointer to a SDL_hid_device object on success or NULL on
266 * failure; call SDL_GetError() for more information.
267 *
268 * \since This function is available since SDL 3.2.0.
269 */
270extern SDL_DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number);
271
272/**
273 * Open a HID device by its path name.
274 *
275 * The path name be determined by calling SDL_hid_enumerate(), or a
276 * platform-specific path name can be used (eg: /dev/hidraw0 on Linux).
277 *
278 * \param path the path name of the device to open.
279 * \returns a pointer to a SDL_hid_device object on success or NULL on
280 * failure; call SDL_GetError() for more information.
281 *
282 * \since This function is available since SDL 3.2.0.
283 */
284extern SDL_DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open_path(const char *path);
285
286/**
287 * Get the properties associated with an SDL_hid_device.
288 *
289 * The following read-only properties are provided by SDL:
290 *
291 * - `SDL_PROP_HIDAPI_LIBUSB_DEVICE_HANDLE_POINTER`: the libusb_device_handle
292 * associated with the device, if it was opened using libusb.
293 *
294 * \param dev a device handle returned from SDL_hid_open().
295 * \returns a valid property ID on success or 0 on failure; call
296 * SDL_GetError() for more information.
297 *
298 * \since This function is available since SDL 3.4.0.
299 */
301
302#define SDL_PROP_HIDAPI_LIBUSB_DEVICE_HANDLE_POINTER "SDL.hidapi.libusb.device.handle"
303
304/**
305 * Write an Output report to a HID device.
306 *
307 * The first byte of `data` must contain the Report ID. For devices which only
308 * support a single report, this must be set to 0x0. The remaining bytes
309 * contain the report data. Since the Report ID is mandatory, calls to
310 * SDL_hid_write() will always contain one more byte than the report contains.
311 * For example, if a hid report is 16 bytes long, 17 bytes must be passed to
312 * SDL_hid_write(), the Report ID (or 0x0, for devices with a single report),
313 * followed by the report data (16 bytes). In this example, the length passed
314 * in would be 17.
315 *
316 * SDL_hid_write() will send the data on the first OUT endpoint, if one
317 * exists. If it does not, it will send the data through the Control Endpoint
318 * (Endpoint 0).
319 *
320 * \param dev a device handle returned from SDL_hid_open().
321 * \param data the data to send, including the report number as the first
322 * byte.
323 * \param length the length in bytes of the data to send.
324 * \returns the actual number of bytes written and -1 on on failure; call
325 * SDL_GetError() for more information.
326 *
327 * \since This function is available since SDL 3.2.0.
328 */
329extern SDL_DECLSPEC int SDLCALL SDL_hid_write(SDL_hid_device *dev, const unsigned char *data, size_t length);
330
331/**
332 * Read an Input report from a HID device with timeout.
333 *
334 * Input reports are returned to the host through the INTERRUPT IN endpoint.
335 * The first byte will contain the Report number if the device uses numbered
336 * reports.
337 *
338 * \param dev a device handle returned from SDL_hid_open().
339 * \param data a buffer to put the read data into.
340 * \param length the number of bytes to read. For devices with multiple
341 * reports, make sure to read an extra byte for the report
342 * number.
343 * \param milliseconds timeout in milliseconds or -1 for blocking wait.
344 * \returns the actual number of bytes read and -1 on on failure; call
345 * SDL_GetError() for more information. If no packet was available to
346 * be read within the timeout period, this function returns 0.
347 *
348 * \since This function is available since SDL 3.2.0.
349 */
350extern SDL_DECLSPEC int SDLCALL SDL_hid_read_timeout(SDL_hid_device *dev, unsigned char *data, size_t length, int milliseconds);
351
352/**
353 * Read an Input report from a HID device.
354 *
355 * Input reports are returned to the host through the INTERRUPT IN endpoint.
356 * The first byte will contain the Report number if the device uses numbered
357 * reports.
358 *
359 * \param dev a device handle returned from SDL_hid_open().
360 * \param data a buffer to put the read data into.
361 * \param length the number of bytes to read. For devices with multiple
362 * reports, make sure to read an extra byte for the report
363 * number.
364 * \returns the actual number of bytes read and -1 on failure; call
365 * SDL_GetError() for more information. If no packet was available to
366 * be read and the handle is in non-blocking mode, this function
367 * returns 0.
368 *
369 * \since This function is available since SDL 3.2.0.
370 */
371extern SDL_DECLSPEC int SDLCALL SDL_hid_read(SDL_hid_device *dev, unsigned char *data, size_t length);
372
373/**
374 * Set the device handle to be non-blocking.
375 *
376 * In non-blocking mode calls to SDL_hid_read() will return immediately with a
377 * value of 0 if there is no data to be read. In blocking mode, SDL_hid_read()
378 * will wait (block) until there is data to read before returning.
379 *
380 * Nonblocking can be turned on and off at any time.
381 *
382 * \param dev a device handle returned from SDL_hid_open().
383 * \param nonblock enable or not the nonblocking reads - 1 to enable
384 * nonblocking - 0 to disable nonblocking.
385 * \returns 0 on success or a negative error code on failure; call
386 * SDL_GetError() for more information.
387 *
388 * \since This function is available since SDL 3.2.0.
389 */
390extern SDL_DECLSPEC int SDLCALL SDL_hid_set_nonblocking(SDL_hid_device *dev, int nonblock);
391
392/**
393 * Send a Feature report to the device.
394 *
395 * Feature reports are sent over the Control endpoint as a Set_Report
396 * transfer. The first byte of `data` must contain the Report ID. For devices
397 * which only support a single report, this must be set to 0x0. The remaining
398 * bytes contain the report data. Since the Report ID is mandatory, calls to
399 * SDL_hid_send_feature_report() will always contain one more byte than the
400 * report contains. For example, if a hid report is 16 bytes long, 17 bytes
401 * must be passed to SDL_hid_send_feature_report(): the Report ID (or 0x0, for
402 * devices which do not use numbered reports), followed by the report data (16
403 * bytes). In this example, the length passed in would be 17.
404 *
405 * \param dev a device handle returned from SDL_hid_open().
406 * \param data the data to send, including the report number as the first
407 * byte.
408 * \param length the length in bytes of the data to send, including the report
409 * number.
410 * \returns the actual number of bytes written and -1 on failure; call
411 * SDL_GetError() for more information.
412 *
413 * \since This function is available since SDL 3.2.0.
414 */
415extern SDL_DECLSPEC int SDLCALL SDL_hid_send_feature_report(SDL_hid_device *dev, const unsigned char *data, size_t length);
416
417/**
418 * Get a feature report from a HID device.
419 *
420 * Set the first byte of `data` to the Report ID of the report to be read.
421 * Make sure to allow space for this extra byte in `data`. Upon return, the
422 * first byte will still contain the Report ID, and the report data will start
423 * in data[1].
424 *
425 * \param dev a device handle returned from SDL_hid_open().
426 * \param data a buffer to put the read data into, including the Report ID.
427 * Set the first byte of `data` to the Report ID of the report to
428 * be read, or set it to zero if your device does not use numbered
429 * reports.
430 * \param length the number of bytes to read, including an extra byte for the
431 * report ID. The buffer can be longer than the actual report.
432 * \returns the number of bytes read plus one for the report ID (which is
433 * still in the first byte), or -1 on on failure; call SDL_GetError()
434 * for more information.
435 *
436 * \since This function is available since SDL 3.2.0.
437 */
438extern SDL_DECLSPEC int SDLCALL SDL_hid_get_feature_report(SDL_hid_device *dev, unsigned char *data, size_t length);
439
440/**
441 * Get an input report from a HID device.
442 *
443 * Set the first byte of `data` to the Report ID of the report to be read.
444 * Make sure to allow space for this extra byte in `data`. Upon return, the
445 * first byte will still contain the Report ID, and the report data will start
446 * in data[1].
447 *
448 * \param dev a device handle returned from SDL_hid_open().
449 * \param data a buffer to put the read data into, including the Report ID.
450 * Set the first byte of `data` to the Report ID of the report to
451 * be read, or set it to zero if your device does not use numbered
452 * reports.
453 * \param length the number of bytes to read, including an extra byte for the
454 * report ID. The buffer can be longer than the actual report.
455 * \returns the number of bytes read plus one for the report ID (which is
456 * still in the first byte), or -1 on on failure; call SDL_GetError()
457 * for more information.
458 *
459 * \since This function is available since SDL 3.2.0.
460 */
461extern SDL_DECLSPEC int SDLCALL SDL_hid_get_input_report(SDL_hid_device *dev, unsigned char *data, size_t length);
462
463/**
464 * Close a HID device.
465 *
466 * \param dev a device handle returned from SDL_hid_open().
467 * \returns 0 on success or a negative error code on failure; call
468 * SDL_GetError() for more information.
469 *
470 * \since This function is available since SDL 3.2.0.
471 */
472extern SDL_DECLSPEC int SDLCALL SDL_hid_close(SDL_hid_device *dev);
473
474/**
475 * Get The Manufacturer String from a HID device.
476 *
477 * \param dev a device handle returned from SDL_hid_open().
478 * \param string a wide string buffer to put the data into.
479 * \param maxlen the length of the buffer in multiples of wchar_t.
480 * \returns 0 on success or a negative error code on failure; call
481 * SDL_GetError() for more information.
482 *
483 * \since This function is available since SDL 3.2.0.
484 */
485extern SDL_DECLSPEC int SDLCALL SDL_hid_get_manufacturer_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
486
487/**
488 * Get The Product String from a HID device.
489 *
490 * \param dev a device handle returned from SDL_hid_open().
491 * \param string a wide string buffer to put the data into.
492 * \param maxlen the length of the buffer in multiples of wchar_t.
493 * \returns 0 on success or a negative error code on failure; call
494 * SDL_GetError() for more information.
495 *
496 * \since This function is available since SDL 3.2.0.
497 */
498extern SDL_DECLSPEC int SDLCALL SDL_hid_get_product_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
499
500/**
501 * Get The Serial Number String from a HID device.
502 *
503 * \param dev a device handle returned from SDL_hid_open().
504 * \param string a wide string buffer to put the data into.
505 * \param maxlen the length of the buffer in multiples of wchar_t.
506 * \returns 0 on success or a negative error code on failure; call
507 * SDL_GetError() for more information.
508 *
509 * \since This function is available since SDL 3.2.0.
510 */
511extern SDL_DECLSPEC int SDLCALL SDL_hid_get_serial_number_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
512
513/**
514 * Get a string from a HID device, based on its string index.
515 *
516 * \param dev a device handle returned from SDL_hid_open().
517 * \param string_index the index of the string to get.
518 * \param string a wide string buffer to put the data into.
519 * \param maxlen the length of the buffer in multiples of wchar_t.
520 * \returns 0 on success or a negative error code on failure; call
521 * SDL_GetError() for more information.
522 *
523 * \since This function is available since SDL 3.2.0.
524 */
525extern SDL_DECLSPEC int SDLCALL SDL_hid_get_indexed_string(SDL_hid_device *dev, int string_index, wchar_t *string, size_t maxlen);
526
527/**
528 * Get the device info from a HID device.
529 *
530 * \param dev a device handle returned from SDL_hid_open().
531 * \returns a pointer to the SDL_hid_device_info for this hid_device or NULL
532 * on failure; call SDL_GetError() for more information. This struct
533 * is valid until the device is closed with SDL_hid_close().
534 *
535 * \since This function is available since SDL 3.2.0.
536 */
538
539/**
540 * Get a report descriptor from a HID device.
541 *
542 * User has to provide a preallocated buffer where descriptor will be copied
543 * to. The recommended size for a preallocated buffer is 4096 bytes.
544 *
545 * \param dev a device handle returned from SDL_hid_open().
546 * \param buf the buffer to copy descriptor into.
547 * \param buf_size the size of the buffer in bytes.
548 * \returns the number of bytes actually copied or -1 on failure; call
549 * SDL_GetError() for more information.
550 *
551 * \since This function is available since SDL 3.2.0.
552 */
553extern SDL_DECLSPEC int SDLCALL SDL_hid_get_report_descriptor(SDL_hid_device *dev, unsigned char *buf, size_t buf_size);
554
555/**
556 * Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers.
557 *
558 * \param active true to start the scan, false to stop the scan.
559 *
560 * \since This function is available since SDL 3.2.0.
561 */
562extern SDL_DECLSPEC void SDLCALL SDL_hid_ble_scan(bool active);
563
564/* Ends C function definitions when using C++ */
565#ifdef __cplusplus
566}
567#endif
568#include <SDL3/SDL_close_code.h>
569
570#endif /* SDL_hidapi_h_ */
SDL_hid_device * SDL_hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
struct SDL_hid_device SDL_hid_device
Definition SDL_hidapi.h:70
int SDL_hid_init(void)
int SDL_hid_get_product_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen)
int SDL_hid_get_report_descriptor(SDL_hid_device *dev, unsigned char *buf, size_t buf_size)
int SDL_hid_read(SDL_hid_device *dev, unsigned char *data, size_t length)
int SDL_hid_close(SDL_hid_device *dev)
Uint32 SDL_hid_device_change_count(void)
SDL_hid_bus_type
Definition SDL_hidapi.h:77
@ SDL_HID_API_BUS_SPI
Definition SDL_hidapi.h:101
@ SDL_HID_API_BUS_I2C
Definition SDL_hidapi.h:96
@ SDL_HID_API_BUS_UNKNOWN
Definition SDL_hidapi.h:79
@ SDL_HID_API_BUS_BLUETOOTH
Definition SDL_hidapi.h:91
@ SDL_HID_API_BUS_USB
Definition SDL_hidapi.h:84
int SDL_hid_exit(void)
int SDL_hid_get_feature_report(SDL_hid_device *dev, unsigned char *data, size_t length)
SDL_PropertiesID SDL_hid_get_properties(SDL_hid_device *dev)
SDL_hid_device * SDL_hid_open_path(const char *path)
int SDL_hid_get_serial_number_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen)
int SDL_hid_get_manufacturer_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen)
void SDL_hid_free_enumeration(SDL_hid_device_info *devs)
int SDL_hid_get_input_report(SDL_hid_device *dev, unsigned char *data, size_t length)
void SDL_hid_ble_scan(bool active)
int SDL_hid_get_indexed_string(SDL_hid_device *dev, int string_index, wchar_t *string, size_t maxlen)
SDL_hid_device_info * SDL_hid_enumerate(unsigned short vendor_id, unsigned short product_id)
int SDL_hid_write(SDL_hid_device *dev, const unsigned char *data, size_t length)
int SDL_hid_send_feature_report(SDL_hid_device *dev, const unsigned char *data, size_t length)
SDL_hid_device_info * SDL_hid_get_device_info(SDL_hid_device *dev)
int SDL_hid_set_nonblocking(SDL_hid_device *dev, int nonblock)
int SDL_hid_read_timeout(SDL_hid_device *dev, unsigned char *data, size_t length, int milliseconds)
Uint32 SDL_PropertiesID
uint32_t Uint32
Definition SDL_stdinc.h:461
unsigned short product_id
Definition SDL_hidapi.h:119
unsigned short vendor_id
Definition SDL_hidapi.h:117
wchar_t * product_string
Definition SDL_hidapi.h:128
SDL_hid_bus_type bus_type
Definition SDL_hidapi.h:150
struct SDL_hid_device_info * next
Definition SDL_hidapi.h:153
unsigned short usage
Definition SDL_hidapi.h:134
wchar_t * manufacturer_string
Definition SDL_hidapi.h:126
unsigned short usage_page
Definition SDL_hidapi.h:131
unsigned short release_number
Definition SDL_hidapi.h:124
wchar_t * serial_number
Definition SDL_hidapi.h:121