|
@@ -2072,22 +2072,31 @@ declare module 'babylonjs-gui/2D/controls/virtualKeyboard' {
|
|
|
* @param shiftState defines the new shift state
|
|
|
*/
|
|
|
applyShiftState(shiftState: number): void;
|
|
|
- /** Gets the input text control attached with the keyboard */
|
|
|
+ /** Gets the input text control currently attached to the keyboard */
|
|
|
readonly connectedInputText: Nullable<InputText>;
|
|
|
/**
|
|
|
* Connects the keyboard with an input text control
|
|
|
+ *
|
|
|
* @param input defines the target control
|
|
|
*/
|
|
|
connect(input: InputText): void;
|
|
|
/**
|
|
|
- * Disconnects the keyboard from an input text control
|
|
|
+ * Disconnects the keyboard from connected InputText controls
|
|
|
+ *
|
|
|
+ * @param input optionally defines a target control, otherwise all are disconnected
|
|
|
*/
|
|
|
- disconnect(): void;
|
|
|
+ disconnect(input?: InputText): void;
|
|
|
+ /**
|
|
|
+ * Release all resources
|
|
|
+ */
|
|
|
+ dispose(): void;
|
|
|
/**
|
|
|
* Creates a new keyboard using a default layout
|
|
|
+ *
|
|
|
+ * @param name defines control name
|
|
|
* @returns a new VirtualKeyboard
|
|
|
*/
|
|
|
- static CreateDefaultLayout(): VirtualKeyboard;
|
|
|
+ static CreateDefaultLayout(name?: string): VirtualKeyboard;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -4701,22 +4710,31 @@ declare module BABYLON.GUI {
|
|
|
* @param shiftState defines the new shift state
|
|
|
*/
|
|
|
applyShiftState(shiftState: number): void;
|
|
|
- /** Gets the input text control attached with the keyboard */
|
|
|
+ /** Gets the input text control currently attached to the keyboard */
|
|
|
readonly connectedInputText: BABYLON.Nullable<InputText>;
|
|
|
/**
|
|
|
* Connects the keyboard with an input text control
|
|
|
+ *
|
|
|
* @param input defines the target control
|
|
|
*/
|
|
|
connect(input: InputText): void;
|
|
|
/**
|
|
|
- * Disconnects the keyboard from an input text control
|
|
|
+ * Disconnects the keyboard from connected InputText controls
|
|
|
+ *
|
|
|
+ * @param input optionally defines a target control, otherwise all are disconnected
|
|
|
*/
|
|
|
- disconnect(): void;
|
|
|
+ disconnect(input?: InputText): void;
|
|
|
+ /**
|
|
|
+ * Release all resources
|
|
|
+ */
|
|
|
+ dispose(): void;
|
|
|
/**
|
|
|
* Creates a new keyboard using a default layout
|
|
|
+ *
|
|
|
+ * @param name defines control name
|
|
|
* @returns a new VirtualKeyboard
|
|
|
*/
|
|
|
- static CreateDefaultLayout(): VirtualKeyboard;
|
|
|
+ static CreateDefaultLayout(name?: string): VirtualKeyboard;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|