Á¶À̽ºÆ½ Å×½ºÆ® ½ºÅ©¸³Æ®

ÀÌ ½ºÅ©¸³Æ®·Î Á¶À̽ºÆ½ÀÇ ¹öÆ° ¹øÈ£¿Í ±âŸ ¼Ó¼ºÀ» ¾Ë¾Æ³¾ ¼ö ÀÖ½À´Ï´Ù. ¶Ç Á¶À̽ºÆ½ÀÌ ´«±Ý Á¶Á¤ÀÌ ÇÊ¿äÇÑÁö ³ëÃâ½ÃÄÑ ÁÝ´Ï´Ù; Áï, °¢ ÃàÀÇ À̵¿ ¹üÀ§´Â ±×·¡¾ß ÇÏ´Â °Íó·³ 0ºÎÅÍ 100 ÆÛ¼¾Æ® »çÀÌÀÔ´Ï´Ù. ´«±Ý Á¶Á¤ÀÌ ÇÊ¿äÇϸé, ¿î¿µ üÁ¦ÀÇ Á¦¾îÆÇÀ̳ª Á¶À̽ºÆ½¿¡ µû¶ó¿À´Â ¼ÒÇÁÆ®¿þ¾î¸¦ ÀÌ¿ëÇϽʽÿÀ.

ÀÌ ½ºÅ©¸³Æ® ³»·Á ¹Þ±â  |  ´Ù¸¥ »ùÇà ½ºÅ©¸³Æ®  |  È¨À¸·Î

; July 6, 2005: Á¶À̽ºÆ½ ¹øÈ£¸¦ ÀÚµ¿ ŽÁö.
; May 8, 2005 : ¼öÁ¤: Á¶À̽ºÆ½ÀÌ Á¢¼ÓµÇ¾î ÀÖ´ÂÁö ŽÁöÇÏ´Â ¼ö´ÜÀ¸·Î
; JoyAxes¸¦ ´õ ÀÌ»ó ÁúÀÇÇÏÁö ¾ÊÀ½. ¾î¶² Á¶À̽ºÆ½Àº °ÔÀÓÆеåÀÌ°í
; ÃàÀÌ Çϳªµµ ¾ø±â ¶§¹®ÀÔ´Ï´Ù.

; ¹«Á¶°Ç ƯÁ¤ Á¶À̽ºÆ½ ¹øÈ£¸¦ »ç¿ëÇÏ°í ½Í´Ù¸é,
; ´ÙÀ½ °ªÀ» 0¿¡¼­ Á¶À̽ºÆ½ ¹øÈ£·Î ¹Ù²ß´Ï´Ù (1-16).
; °ªÀÌ 0À̸é Á¶À̽ºÆ½ ¹øÈ£¸¦ ÀÚµ¿ ŽÁöÇÕ´Ï´Ù:
JoystickNumber = 0

; END OF CONFIG SECTION. ÀÌ ½ÃÁ¡ ÀÌÈÄ·Î º¯°æÇÏÁö ¸¶½Ê½Ã¿À
; ´Ü, ½ºÅ©¸³Æ®ÀÇ ±âº» ±â´ÉÀ» ¹Ù²Ù°í ½Í´Ù¸é ¿¹¿ÜÀÔ´Ï´Ù.

; ¿äûÇϸé Á¶À̽ºÆ½ ¹øÈ£¸¦ ÀÚµ¿ ŽÁöÇÕ´Ï´Ù:
if JoystickNumber <= 0
{
    Loop 16  ; °¢ Á¶À̽ºÆ½ ¹øÈ£¸¦ ÁúÀÇÇØ ¾î´À ¹øÈ£°¡ Á¸ÀçÇÏ´ÂÁö ¾Ë¾Æ³À´Ï´Ù.
    {
        GetKeyState, JoyName, %A_Index%JoyName
        if JoyName <>
        {
            JoystickNumber = %A_Index%
            break
        }
    }
    if JoystickNumber <= 0
    {
        MsgBox ½Ã½ºÅÛ¿¡ Á¶À̽ºÆ½ÀÌ ÀåÂøµÇ¾î ÀÖÁö ¾ÊÀº °Í °°½À´Ï´Ù.
        ExitApp
    }
}

#SingleInstance
SetFormat, float, 03  ; Ãà À§Ä¡ ÆÛ¼¾Æ®¿¡¼­ ¼Ò¼öÁ¡À» »ý·«ÇÕ´Ï´Ù.
GetKeyState, joy_buttons, %JoystickNumber%JoyButtons
GetKeyState, joy_name, %JoystickNumber%JoyName
GetKeyState, joy_info, %JoystickNumber%JoyInfo
Loop
{
    buttons_down =
    Loop, %joy_buttons%
    {
        GetKeyState, joy%a_index%, %JoystickNumber%joy%a_index%
        if joy%a_index% = D
            buttons_down = %buttons_down%%a_space%%a_index%
    }
    GetKeyState, joyx, %JoystickNumber%JoyX
    axis_info = X%joyx%
    GetKeyState, joyy, %JoystickNumber%JoyY
    axis_info = %axis_info%%a_space%%a_space%Y%joyy%
    IfInString, joy_info, Z
    {
        GetKeyState, joyz, %JoystickNumber%JoyZ
        axis_info = %axis_info%%a_space%%a_space%Z%joyz%
    }
    IfInString, joy_info, R
    {
        GetKeyState, joyr, %JoystickNumber%JoyR
        axis_info = %axis_info%%a_space%%a_space%R%joyr%
    }
    IfInString, joy_info, U
    {
        GetKeyState, joyu, %JoystickNumber%JoyU
        axis_info = %axis_info%%a_space%%a_space%U%joyu%
    }
    IfInString, joy_info, V
    {
        GetKeyState, joyv, %JoystickNumber%JoyV
        axis_info = %axis_info%%a_space%%a_space%V%joyv%
    }
    IfInString, joy_info, P
    {
        GetKeyState, joyp, %JoystickNumber%JoyPOV
        axis_info = %axis_info%%a_space%%a_space%POV%joyp%
    }
    ToolTip, %joy_name% (#%JoystickNumber%):`n%axis_info%`nButtons Down: %buttons_down%`n`n(Á¾·áÇÏ·Á¸é Æ®·¹ÀÌ ¾ÆÀÌÄÜÀ» ¿ìŬ¸¯ ÇϽʽÿÀ)
    Sleep, 100
}
return