하드웨어 마우스 생성 속성 가져오기 (:get_properties)
이 메서드는 20260805 이후 버전에서 사용할 수 있습니다
선언
properties = 마우스 객체:get_properties()
반환값
- properties 테이블. 기기를 만들 때 저장된 설정 속성의 복사본입니다.
설명
생성할 때 저장된 속성의 복사본을 반환하며, 시스템이 관리하는 속성이 포함될 수 있습니다. 실시간 시스템 상태가 아니므로 iOS에서 실제로 사용하는 값은 다를 수 있습니다.
예제
local m = assert(mouse.connect())
local properties = m:get_properties()
print(properties.Product)
print(properties.Transport)
assert(m:disconnect())