3D Keyboard
2476
interface/resources/config/keyboard.json
Normal file
BIN
interface/resources/meshes/drumstick.fbx
Normal file
BIN
interface/resources/meshes/keyboard/SM_enter.fbx
Normal file
BIN
interface/resources/meshes/keyboard/SM_key.fbx
Normal file
BIN
interface/resources/meshes/keyboard/SM_space.fbx
Normal file
BIN
interface/resources/meshes/keyboard/keyCap_F.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_a.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_b.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_c.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_d.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_e.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_g.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_h.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_i.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_j.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_k.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_l.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_m.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_n.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_o.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_p.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_q.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_r.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_s.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_t.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_u.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_v.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_w.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_x.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_y.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
interface/resources/meshes/keyboard/keyCap_z.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
interface/resources/meshes/keyboard/key_0.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
interface/resources/meshes/keyboard/key_1.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
interface/resources/meshes/keyboard/key_123.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
interface/resources/meshes/keyboard/key_2.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
interface/resources/meshes/keyboard/key_3.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
interface/resources/meshes/keyboard/key_4.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/key_5.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/key_6.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
interface/resources/meshes/keyboard/key_7.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
interface/resources/meshes/keyboard/key_8.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
interface/resources/meshes/keyboard/key_9.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
interface/resources/meshes/keyboard/key_a.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/key_abc.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
interface/resources/meshes/keyboard/key_ampersand.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
interface/resources/meshes/keyboard/key_ast.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/key_at.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
interface/resources/meshes/keyboard/key_b.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
interface/resources/meshes/keyboard/key_backspace.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
interface/resources/meshes/keyboard/key_c.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
interface/resources/meshes/keyboard/key_cap.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
interface/resources/meshes/keyboard/key_caret.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
interface/resources/meshes/keyboard/key_close_paren.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
interface/resources/meshes/keyboard/key_colon.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/key_comma.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
interface/resources/meshes/keyboard/key_d.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
interface/resources/meshes/keyboard/key_dollar.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
interface/resources/meshes/keyboard/key_dquote.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
interface/resources/meshes/keyboard/key_e.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/key_enter.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/key_exclam.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/key_exit.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
interface/resources/meshes/keyboard/key_f.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/key_g.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
interface/resources/meshes/keyboard/key_h.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/key_hashtag.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
interface/resources/meshes/keyboard/key_i.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/key_j.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
interface/resources/meshes/keyboard/key_k.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
interface/resources/meshes/keyboard/key_l.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
interface/resources/meshes/keyboard/key_m.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
interface/resources/meshes/keyboard/key_min.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
interface/resources/meshes/keyboard/key_n.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/key_o.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/key_open_paren.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
interface/resources/meshes/keyboard/key_p.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
interface/resources/meshes/keyboard/key_percentage.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
interface/resources/meshes/keyboard/key_period.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/key_plus.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
interface/resources/meshes/keyboard/key_q.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
interface/resources/meshes/keyboard/key_question.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
interface/resources/meshes/keyboard/key_r.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
interface/resources/meshes/keyboard/key_s.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/key_semi.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
interface/resources/meshes/keyboard/key_slash.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
interface/resources/meshes/keyboard/key_squote.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
interface/resources/meshes/keyboard/key_t.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
interface/resources/meshes/keyboard/key_u.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
interface/resources/meshes/keyboard/key_under.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
interface/resources/meshes/keyboard/key_v.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
interface/resources/meshes/keyboard/key_w.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
interface/resources/meshes/keyboard/key_x.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
interface/resources/meshes/keyboard/key_y.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
interface/resources/meshes/keyboard/key_z.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
interface/resources/meshes/keyboard/text_placard.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
interface/resources/meshes/keyboard/white.png
Normal file
After Width: | Height: | Size: 293 B |
|
@ -36,13 +36,29 @@ Rectangle {
|
|||
|
||||
readonly property int raisedHeight: keyboardHeight + (showMirrorText ? keyboardRowHeight : 0)
|
||||
|
||||
height: enabled && raised ? raisedHeight : 0
|
||||
visible: enabled && raised
|
||||
height: 0
|
||||
visible: false
|
||||
|
||||
property bool shiftMode: false
|
||||
property bool numericShiftMode: false
|
||||
|
||||
|
||||
onPasswordChanged: {
|
||||
var use3DKeyboard = (typeof MenuInterface === "undefined") ? false : MenuInterface.isOptionChecked("Use 3D Keyboard");
|
||||
if (use3DKeyboard) {
|
||||
KeyboardScriptingInterface.password = password;
|
||||
}
|
||||
}
|
||||
|
||||
onRaisedChanged: {
|
||||
var use3DKeyboard = (typeof MenuInterface === "undefined") ? false : MenuInterface.isOptionChecked("Use 3D Keyboard");
|
||||
if (!use3DKeyboard) {
|
||||
keyboardBase.height = raised ? raisedHeight : 0;
|
||||
keyboardBase.visible = raised;
|
||||
} else {
|
||||
KeyboardScriptingInterface.raised = raised;
|
||||
KeyboardScriptingInterface.password = raised ? password : false;
|
||||
}
|
||||
mirroredText = "";
|
||||
}
|
||||
|
||||
|
|
|
@ -127,6 +127,10 @@ TabletModalWindow {
|
|||
}
|
||||
}
|
||||
|
||||
Component.onDestruction: {
|
||||
loginKeyboard.raised = false;
|
||||
}
|
||||
|
||||
Keyboard {
|
||||
id: loginKeyboard
|
||||
raised: root.keyboardEnabled && root.keyboardRaised
|
||||
|
|
|
@ -19,7 +19,7 @@ Rectangle {
|
|||
HifiControls.Keyboard {
|
||||
id: keyboard
|
||||
z: 1000
|
||||
raised: parent.keyboardEnabled && parent.keyboardRaised
|
||||
raised: parent.keyboardEnabled && parent.keyboardRaised && HMD.active
|
||||
numeric: parent.punctuationMode
|
||||
anchors {
|
||||
left: parent.left
|
||||
|
@ -204,7 +204,8 @@ Rectangle {
|
|||
|
||||
property bool isInManageState: false
|
||||
|
||||
Component.onCompleted: {
|
||||
Component.onDestruction: {
|
||||
keyboard.raised = false;
|
||||
}
|
||||
|
||||
AvatarAppStyle {
|
||||
|
@ -235,6 +236,8 @@ Rectangle {
|
|||
avatarIconVisible: mainPageVisible
|
||||
settingsButtonVisible: mainPageVisible
|
||||
onSettingsClicked: {
|
||||
displayNameInput.focus = false;
|
||||
root.keyboardRaised = false;
|
||||
settings.open(currentAvatarSettings, currentAvatar.avatarScale);
|
||||
}
|
||||
}
|
||||
|
@ -344,6 +347,10 @@ Rectangle {
|
|||
emitSendToScript({'method' : 'changeDisplayName', 'displayName' : text})
|
||||
focus = false;
|
||||
}
|
||||
|
||||
onFocusChanged: {
|
||||
root.keyboardRaised = focus;
|
||||
}
|
||||
}
|
||||
|
||||
ShadowImage {
|
||||
|
|
|
@ -14,6 +14,22 @@ Rectangle {
|
|||
|
||||
signal scaleChanged(real scale);
|
||||
|
||||
property bool keyboardEnabled: true
|
||||
property bool keyboardRaised: false
|
||||
property bool punctuationMode: false
|
||||
|
||||
HifiControlsUit.Keyboard {
|
||||
id: keyboard
|
||||
z: 1000
|
||||
raised: parent.keyboardEnabled && parent.keyboardRaised
|
||||
numeric: parent.punctuationMode
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
}
|
||||
}
|
||||
|
||||
property alias onSaveClicked: dialogButtons.onYesClicked
|
||||
property alias onCancelClicked: dialogButtons.onNoClicked
|
||||
|
||||
|
@ -314,6 +330,10 @@ Rectangle {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
placeholderText: 'user\\file\\dir'
|
||||
|
||||
onFocusChanged: {
|
||||
keyboardRaised = (avatarAnimationUrlInputText.focus || avatarCollisionSoundUrlInputText.focus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -340,6 +360,10 @@ Rectangle {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
placeholderText: 'https://hifi-public.s3.amazonaws.com/sounds/Collisions-'
|
||||
|
||||
onFocusChanged: {
|
||||
keyboardRaised = (avatarAnimationUrlInputText.focus || avatarCollisionSoundUrlInputText.focus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|