目次
-
SDL 3.0 API(機能別)
-
HIDAPI
- SDL_hid_get_product_string
SDL_hid_get_product_string
HIDデバイスのプロダクト文字列を得る
ヘッダ
SDL3/SDL_hidapi.h
構文
int SDL_hid_get_product_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
引数
SDL_hid_device
*
dev
SDL_hid_open()
が戻したデバイスハンドル
wchar_t *
string
データの書き込み先ワイド文字列バッファ
size_t
maxlen
バッファの文字数
戻り値
(int) 成功のとき0, 失敗のとき負の数のエラーコードを戻す.
SDL_GetError()
で詳細を知ることができる.
バージョン
SDL 3.2.0以降
SDL Wikiへのリンク
SDL_hid_get_product_string - SDL Wiki