- Timestamp:
- Dec 22, 2008 1:15:30 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/KeyboardImpl.cpp
r14772 r15715 144 144 145 145 if (RT_FAILURE (vrc)) 146 rc = setError (E_FAIL, tr ("Could not send scan code 0x%08X to the virtual keyboard (%Rrc)"), 147 scancode, vrc); 146 rc = setError (VBOX_E_IPRT_ERROR, 147 tr ("Could not send scan code 0x%08X to the virtual keyboard (%Rrc)"), 148 scancode, vrc); 148 149 149 150 return rc; … … 182 183 183 184 if (RT_FAILURE (vrc)) 184 return setError (E_FAIL, tr ("Could not send all scan codes to the virtual keyboard (%Rrc)"), 185 vrc); 185 return setError (VBOX_E_IPRT_ERROR, 186 tr ("Could not send all scan codes to the virtual keyboard (%Rrc)"), 187 vrc); 186 188 187 189 /// @todo is it actually possible that not all scancodes can be transmitted? -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r15714 r15715 8884 8884 in <link to="IConsole::keyboard"/>. 8885 8885 8886 Through this interface, the virtual machine's virtual keyboard can be controlled. One 8887 can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it. 8886 Use this interface to send keystrokes or the Ctrl-Alt-Del sequence 8887 to the virtual machine. 8888 8888 8889 </desc> 8889 8890 <method name="putScancode"> 8890 <desc>Sends a scancode to the keyboard.</desc> 8891 <desc>Sends a scancode to the keyboard. 8892 8893 <result name="VBOX_E_IPRT_ERROR"> 8894 Could not send scan code to virtual keyboard. 8895 </result> 8896 8897 </desc> 8891 8898 <param name="scancode" type="long" dir="in"/> 8892 8899 </method> 8893 8900 8894 8901 <method name="putScancodes"> 8895 <desc>Sends an array of scancode to the keyboard.</desc> 8902 <desc>Sends an array of scancodes to the keyboard. 8903 8904 <result name="VBOX_E_IPRT_ERROR"> 8905 Could not send all scan codes to virtual keyboard. 8906 </result> 8907 8908 </desc> 8896 8909 <param name="scancodes" type="long" dir="in" safearray="yes"/> 8897 8910 <param name="codesStored" type="unsigned long" dir="return"/> … … 8899 8912 8900 8913 <method name="putCAD"> 8901 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc> 8914 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This 8915 function is nothing special, it is just a convenience function 8916 calling <link to="IKeyboard::putScancodes"/> with the proper scancodes. 8917 8918 <result name="VBOX_E_IPRT_ERROR"> 8919 Could not send all scan codes to virtual keyboard. 8920 </result> 8921 8922 </desc> 8902 8923 </method> 8903 8924
Note:
See TracChangeset
for help on using the changeset viewer.