Handbook
Glossary
product-string ( controller -- string )
Game controller input
Prev:
find-controller-instance ( product-id instance-id -- controller/f )
Next:
product-id ( controller -- id )
Vocabulary
game
.
input
Inputs
controller
a
controller
Outputs
string
a
string
Word description
Returns a human-readable string describing the game controller device represented by
controller
. This string is not necessarily unique to the product or instance; to uniquely identify the device, see
product-id
and
instance-id
.
See also
product-id
,
instance-id
,
find-controller-products
,
find-controller-instance
Definition
IN:
game.input
HOOK:
product-string
game-input-backend
( controller -- string )
Methods
USING:
accessors
game.input
game.input.iokit
iokit.hid
kernel
;
M:
iokit-game-input-backend
product-string
handle>>
[
kIOHIDProductKey
device-property
]
[
kIOHIDManufacturerKey
device-property
]
bi
" "
?glue
;