-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dvorak keyboard layout, cleaned up naming of layouts vs languages
- Loading branch information
John Luxford
committed
Jul 28, 2017
1 parent
7b94c37
commit c8df40d
Showing
20 changed files
with
146 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Copyright (c) 2017 The Campfire Union Inc - All Rights Reserved. | ||
* | ||
* Unauthorized copying of this file, via any medium, is strictly prohibited. | ||
* This source code is proprietary and confidential. | ||
* | ||
* Email: [email protected] | ||
* Website: https://www.campfireunion.com | ||
*/ | ||
|
||
using UnityEngine; | ||
using VRKeys.Layouts; | ||
|
||
namespace VRKeys { | ||
/// <summary> | ||
/// List of supported layouts. | ||
/// </summary> | ||
public enum KeyboardLayout { | ||
Qwerty, | ||
French, | ||
Dvorak | ||
} | ||
|
||
/// <summary> | ||
/// Fetches layouts. | ||
/// </summary> | ||
public static class LayoutList { | ||
|
||
/// <summary> | ||
/// Get a new keyboard layout object. | ||
/// </summary> | ||
/// <param name="layout">KeyboardLayout.</param> | ||
/// <returns>Layout object.</returns> | ||
public static Layout GetLayout (KeyboardLayout layout) { | ||
switch (layout) { | ||
case KeyboardLayout.French: | ||
return new French (); | ||
|
||
case KeyboardLayout.Dvorak: | ||
return new Dvorak (); | ||
|
||
default: | ||
return new Layout (); | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (c) 2017 The Campfire Union Inc - All Rights Reserved. | ||
* | ||
* Unauthorized copying of this file, via any medium, is strictly prohibited. | ||
* This source code is proprietary and confidential. | ||
* | ||
* Email: [email protected] | ||
* Website: https://www.campfireunion.com | ||
*/ | ||
|
||
namespace VRKeys.Layouts { | ||
/// <summary> | ||
/// Dvorak language keyboard. | ||
/// </summary> | ||
public class Dvorak : Layout { | ||
|
||
public Dvorak () { | ||
row1Keys = new string[] { "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "[", "]" }; | ||
|
||
row1Shift = new string[] { "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "{", "}" }; | ||
|
||
row2Keys = new string[] { "'", ",", ".", "p", "y", "f", "g", "c", "r", "l", "/", "=", "\\" }; | ||
|
||
row2Shift = new string[] { "\"", "<", ">", "P", "Y", "F", "G", "C", "R", "L", "?", "+", "|" }; | ||
|
||
row3Keys = new string[] { "a", "o", "e", "u", "i", "d", "h", "t", "n", "s", "-" }; | ||
|
||
row3Shift = new string[] { "A", "O", "E", "U", "I", "D", "H", "T", "N", "S", "_" }; | ||
|
||
row4Keys = new string[] { ";", "q", "j", "k", "x", "b", "m", "w", "v", "z" }; | ||
|
||
row4Shift = new string[] { ":", "Q", "J", "K", "X", "B", "M", "W", "V", "Z" }; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.