Skip to content

Instantly share code, notes, and snippets.

@chromabox
Last active September 12, 2016 10:57
Show Gist options
  • Save chromabox/95124b5a849ed76af2f974b5230cac1e to your computer and use it in GitHub Desktop.
Save chromabox/95124b5a849ed76af2f974b5230cac1e to your computer and use it in GitHub Desktop.
Tree of Savior でゲームパッドのBuffalo BSGP1204シリーズを使ったときの設定。差し替えて使えばOK
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by imc (imc) -->
<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by MinstFaith (EMBRACE) -->
<Category>
<HotKey ID="MoveUp" Name="" DownScp="None" UpScp="None" Key="JOY_UP" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="YES" Category="Battle"/>
<HotKey ID="MoveDown" Name="" DownScp="None" UpScp="None" Key="JOY_DOWN" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="YES" Category="Battle"/>
<HotKey ID="MoveLeft" Name="" DownScp="None" UpScp="None" Key="JOY_LEFT" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="YES" Category="Battle"/>
<HotKey ID="MoveRight" Name="" DownScp="None" UpScp="None" Key="JOY_RIGHT" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="YES" Category="Battle"/>
<HotKey ID="QuickSlotExecute1" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(0)" UpScp="None" Key="JOY_BTN_4" PressedKey="JOY_BTN_5" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute2" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(1)" UpScp="None" Key="JOY_BTN_3" PressedKey="JOY_BTN_5" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute3" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(2)" UpScp="None" Key="JOY_BTN_1" PressedKey="JOY_BTN_5" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute4" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(3)" UpScp="None" Key="JOY_BTN_2" PressedKey="JOY_BTN_5" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute5" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(4)" UpScp="None" Key="JOY_BTN_4" PressedKey="JOY_BTN_7" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute6" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(5)" UpScp="None" Key="JOY_BTN_3" PressedKey="JOY_BTN_7" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute7" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(6)" UpScp="None" Key="JOY_BTN_1" PressedKey="JOY_BTN_7" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute8" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(7)" UpScp="None" Key="JOY_BTN_2" PressedKey="JOY_BTN_7" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute9" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(12)" UpScp="None" Key="JOY_BTN_4" PressedKey="JOY_BTN_6" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute14" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(13)" UpScp="None" Key="JOY_BTN_3" PressedKey="JOY_BTN_6" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute15" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(14)" UpScp="None" Key="JOY_BTN_1" PressedKey="JOY_BTN_6" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute16" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(15)" UpScp="None" Key="JOY_BTN_2" PressedKey="JOY_BTN_6" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute17" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(16)" UpScp="None" Key="JOY_BTN_4" PressedKey="JOY_BTN_8" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute18" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(17)" UpScp="None" Key="JOY_BTN_3" PressedKey="JOY_BTN_8" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute19" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(18)" UpScp="None" Key="JOY_BTN_1" PressedKey="JOY_BTN_8" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="QuickSlotExecute20" Name="" DownScp="JOYSTICK_QUICKSLOT_EXECUTE(19)" UpScp="None" Key="JOY_BTN_2" PressedKey="JOY_BTN_8" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="NormalAttack" Name="" DownScp="None" UpScp="None" Key="JOY_BTN_4" PressedKey="MustNone" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="Jump" Name="" DownScp="None" UpScp="None" Key="JOY_BTN_3" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="ToggleMouseMode" Name="" DownScp="joystick.ToggleMouseMode()" UpScp="None" Key="JOY_BTN_10" PressedKey="JOY_BTN_8" Mode="Both" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="Map" Name="" DownScp="UI_TOGGLE_MAP()" UpScp="None" Key="JOY_BTN_9" PressedKey="JOY_BTN_5" Mode="Both" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="Select" Name="" DownScp="None" UpScp="None" Key="JOY_BTN_2" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="QuestItemUse" Name="" DownScp="QUESTITEMUSE_EXECUTE()" UpScp="None" Key="JOY_BTN_10" PressedKey="JOY_BTN_7" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="MouseSpeedUP" Name="" DownScp="joystick.MouseSpeedUp(5)" UpScp="joystick.MouseSpeedUp(-5)" Key="JOY_BTN_1" PressedKey="None" Mode="Mouse" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="Escape" Name="" DownScp="None" UpScp="None" Key="JOY_BTN_10" PressedKey="None" Mode="Both" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="QuickSlotSwap1" Name="" DownScp="JOYSTICK_QUICKSLOT_SWAP(1)" UpScp="None" Key="JOY_BTN_8" PressedKey="JOY_BTN_7" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="QuickSlotSwap2" Name="" DownScp="JOYSTICK_QUICKSLOT_SWAP(2)" UpScp="None" Key="JOY_BTN_7" PressedKey="JOY_BTN_8" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="WeaponSwap1" Name="" DownScp="WEAPONSWAP_SWAP_EQUIP()" UpScp="None" Key="JOY_BTN_11" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="TargetFixed" Name="" DownScp="None" UpScp="None" Key="JOY_BTN_12" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="TargetChange" Name="" DownScp="None" UpScp="None" Key="JOY_TARGET_CHANGE" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="WarpQuest" Name="" DownScp="SELECT_QUEST_WARP()" UpScp="None" Key="JOY_BTN_9" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="LHand" Name="" DownScp="None" UpScp="None" Key="JOY_BTN_1" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="RideOn" Name="" DownScp="ON_RIDING_VEHICLE(1)" UpScp="None" Key="JOY_UP" PressedKey="JOY_L1L2" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="RideOff" Name="" DownScp="ON_RIDING_VEHICLE(0)" UpScp="None" Key="JOY_DOWN" PressedKey="JOY_L1L2" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Basic"/>
<HotKey ID="CrossUp" Name="" DownScp="None" UpScp="None" Key="JOY_CROSS_UP" PressedKey="None" Mode="Mouse" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="CrossDown" Name="" DownScp="None" UpScp="None" Key="JOY_CROSS_DOWN" PressedKey="None" Mode="Mouse" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="CrossLeft" Name="" DownScp="None" UpScp="None" Key="JOY_CROSS_LEFT" PressedKey="None" Mode="Mouse" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="CrossRight" Name="" DownScp="None" UpScp="None" Key="JOY_CROSS_RIGHT" PressedKey="None" Mode="Mouse" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="ToggleRest" Name="" DownScp="control.RestSit()" UpScp="None" Key="JOY_R1R2" PressedKey="None" Mode="Key" UseAlt="NO" UseCtrl="NO" OnEdit="NO" Category="Battle"/>
<HotKey ID="ChatType" Name="" DownScp="ui.ProcessTabKey()" UpScp="None" Key="TAB" UseShift="NO" UseAlt="NO" UseCtrl="NO" OnEdit="YES" Category="System"/>
</Category>
@chromabox
Copy link
Author

Buffalo BSGP1204シリーズはこれ
http://buffalo.jp/product/input/gamepad/bsgp1204/

ボタンに番号がそのまま振ってあったのでわかりやすかった。
ただし、L1、L2、R1、R2ボタン押し下げ時にスキルスロットが思った所に光らなかったので、このあたりの設定はそのままです。

思った所に光らない理由は、data/addon.ipf内のとあるLuaにハードコーディングされている為。

lua内では、JOY_BTN_5がinput_L1と定義されているが、BufaloのこのコントローラでJOY_BTN_5はL2に割り当たっているので
無理やりXMLのほうを変更するとL1押してるのにL2のスキルセットが光ってしまうとかなってしまう。
(但し、スキルはL1のものが発動される。。。)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment