コード例 #1
0
ファイル: Input.cs プロジェクト: neipo13/NezScreenWrap
 public Input(int index)
 {
     this.gamepadIndex = index;
     using (StreamReader reader = new StreamReader("input.json"))
     {
         string json = reader.ReadToEnd();
         mapping = new JavaScriptSerializer().Deserialize <List <InputMapping> >(json).Single(m => m.index == index);
     }
 }
コード例 #2
0
ファイル: Input.cs プロジェクト: neipo13/NezScreenWrap
 public Input(InputMapping mapping)
 {
     gamepadIndex = mapping.index;
 }