Switch硬體外掛完成 - Switch
By Queena
at 2018-01-23T00:12
at 2018-01-23T00:12
Table of Contents
本版是NS板,發文討論者請注意
01. 全面禁止改機文與盜版討論
任何盜版徵求、模擬器、改機討論嚴格禁止
非官方NFC卡及Amiibo也視同盜版.
相關文章將視情況給予退文或水桶30天起。
----------------------------------------------------
先聲明,此為外部設備,就像是拿轉接頭把PS4搖桿轉成Switch一樣的方式
也就是修改USB HID的內容
並非硬體改機,也不是軟體改機,最簡單的說法是自己寫搖桿
前情提要
https://forum.gamer.com.tw/C.php?bsn=31587&snA=4622&tnum=1
前幾天是照抄Hori搖桿的描述符,但是發現一動也不動...
不過後來搜尋到國外大神把描述符給寫好了
後來才發現,原來PC端跟Switch端有些不同
https://github.com/shinyquagsire23/Switch-Fightstick/blob/master/HORI_Descriptors
於是花一個小時改寫一下Code
目前是完成了
https://www.youtube.com/watch?v=R3k4lsuIvaU
uint8_t buf_standby[8] ={0x00,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//待命
uint8_t buf2_up[8] ={0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00};//上
uint8_t buf2_down[8] ={0x00,0x00,0x04,0x80,0x80,0x80,0x80,0x00};//下
uint8_t buf2_left[8] ={0x00,0x00,0x06,0x80,0x80,0x80,0x80,0x00};//左
uint8_t buf2_right[8] ={0x00,0x00,0x02,0x80,0x80,0x80,0x80,0x00};//右
uint8_t buf3_L[8] ={0x10,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//L
uint8_t buf3_R[8] ={0x20,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//R
uint8_t buf3_LR[8] ={0x30,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//L+R
uint8_t buf3_A[8] ={0x04,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//A
uint8_t buf3_B[8] ={0x02,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//B
uint8_t buf3_X[8] ={0x08,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//X
uint8_t buf3_Y[8] ={0x01,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//Y
這些是按鍵的RAW值,只要我們把按鍵寫好,延遲寫好
就可以上班之後掛印度神劍的七冰拉
影片是插上之後,上下左右的模擬
--
今天去醫院,醫生說:你有30年的煙齡,你如果不抽煙,菸的的錢都夠買賓士了。
我一聽就不爽了。
我就反問醫生:「你抽煙嗎」?
醫生說:我不抽啊。 我又問:那他媽你的賓士呢?
醫生說:在樓下停著呢,怎麼了? 我說:沒什麼,我問問而已。
--
01. 全面禁止改機文與盜版討論
任何盜版徵求、模擬器、改機討論嚴格禁止
非官方NFC卡及Amiibo也視同盜版.
相關文章將視情況給予退文或水桶30天起。
----------------------------------------------------
先聲明,此為外部設備,就像是拿轉接頭把PS4搖桿轉成Switch一樣的方式
也就是修改USB HID的內容
並非硬體改機,也不是軟體改機,最簡單的說法是自己寫搖桿
前情提要
https://forum.gamer.com.tw/C.php?bsn=31587&snA=4622&tnum=1
前幾天是照抄Hori搖桿的描述符,但是發現一動也不動...
不過後來搜尋到國外大神把描述符給寫好了
後來才發現,原來PC端跟Switch端有些不同
https://github.com/shinyquagsire23/Switch-Fightstick/blob/master/HORI_Descriptors
於是花一個小時改寫一下Code
目前是完成了
https://www.youtube.com/watch?v=R3k4lsuIvaU
uint8_t buf_standby[8] ={0x00,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//待命
uint8_t buf2_up[8] ={0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00};//上
uint8_t buf2_down[8] ={0x00,0x00,0x04,0x80,0x80,0x80,0x80,0x00};//下
uint8_t buf2_left[8] ={0x00,0x00,0x06,0x80,0x80,0x80,0x80,0x00};//左
uint8_t buf2_right[8] ={0x00,0x00,0x02,0x80,0x80,0x80,0x80,0x00};//右
uint8_t buf3_L[8] ={0x10,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//L
uint8_t buf3_R[8] ={0x20,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//R
uint8_t buf3_LR[8] ={0x30,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//L+R
uint8_t buf3_A[8] ={0x04,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//A
uint8_t buf3_B[8] ={0x02,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//B
uint8_t buf3_X[8] ={0x08,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//X
uint8_t buf3_Y[8] ={0x01,0x00,0x0f,0x80,0x80,0x80,0x80,0x00};//Y
這些是按鍵的RAW值,只要我們把按鍵寫好,延遲寫好
就可以上班之後掛印度神劍的七冰拉
影片是插上之後,上下左右的模擬
--
今天去醫院,醫生說:你有30年的煙齡,你如果不抽煙,菸的的錢都夠買賓士了。
我一聽就不爽了。
我就反問醫生:「你抽煙嗎」?
醫生說:我不抽啊。 我又問:那他媽你的賓士呢?
醫生說:在樓下停著呢,怎麼了? 我說:沒什麼,我問問而已。
--
Tags:
Switch
All Comments
By Mary
at 2018-01-26T15:18
at 2018-01-26T15:18
By Jack
at 2018-01-28T04:03
at 2018-01-28T04:03
By Barb Cronin
at 2018-01-30T15:41
at 2018-01-30T15:41
By Doris
at 2018-02-03T23:55
at 2018-02-03T23:55
By Ivy
at 2018-02-06T01:26
at 2018-02-06T01:26
By Bennie
at 2018-02-09T23:33
at 2018-02-09T23:33
By George
at 2018-02-13T06:51
at 2018-02-13T06:51
By Kumar
at 2018-02-14T03:22
at 2018-02-14T03:22
By Mason
at 2018-02-17T06:25
at 2018-02-17T06:25
By Emily
at 2018-02-21T05:22
at 2018-02-21T05:22
By Daniel
at 2018-02-25T04:22
at 2018-02-25T04:22
By Zanna
at 2018-02-26T08:53
at 2018-02-26T08:53
By Andy
at 2018-03-03T02:08
at 2018-03-03T02:08
By Frederica
at 2018-03-06T04:00
at 2018-03-06T04:00
By Dorothy
at 2018-03-07T15:18
at 2018-03-07T15:18
By Yedda
at 2018-03-10T10:00
at 2018-03-10T10:00
By Todd Johnson
at 2018-03-12T20:54
at 2018-03-12T20:54
By Caitlin
at 2018-03-14T13:45
at 2018-03-14T13:45
By Ethan
at 2018-03-16T07:57
at 2018-03-16T07:57
By Suhail Hany
at 2018-03-20T21:51
at 2018-03-20T21:51
By David
at 2018-03-25T11:11
at 2018-03-25T11:11
By Hazel
at 2018-03-30T06:24
at 2018-03-30T06:24
By Ursula
at 2018-03-30T12:53
at 2018-03-30T12:53
By Andrew
at 2018-03-31T11:28
at 2018-03-31T11:28
By Dora
at 2018-04-01T01:22
at 2018-04-01T01:22
Related Posts
腕帶固定點斷裂
By Freda
at 2018-01-22T23:28
at 2018-01-22T23:28
蒸氣世界 登陸Switch
By Zenobia
at 2018-01-22T22:50
at 2018-01-22T22:50
eShop已購買遊戲卻無法下載
By Olive
at 2018-01-22T21:47
at 2018-01-22T21:47
XB2 力男羈絆選項 小雷
By Catherine
at 2018-01-22T21:05
at 2018-01-22T21:05
關於RDS社的漆彈硬殼包
By Dorothy
at 2018-01-22T19:39
at 2018-01-22T19:39