Changeset 49386 in vbox
- Timestamp:
- Nov 4, 2013 4:39:46 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90431
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r49356 r49386 14730 14730 </method> 14731 14731 14732 <method name="releaseKeys"> 14733 <desc>Causes the virtual keyboard to release any keys which are 14734 currently pressed. Useful when host and guest keyboard may be out 14735 of sync. 14736 14737 <result name="VBOX_E_IPRT_ERROR"> 14738 Could not release some or all keys. 14739 </result> 14740 14741 </desc> 14742 </method> 14743 14732 14744 <attribute name="eventSource" type="IEventSource" readonly="yes"> 14733 14745 <desc> -
trunk/src/VBox/Main/include/KeyboardImpl.h
r45029 r49386 74 74 ULONG *codesStored); 75 75 STDMETHOD(PutCAD)(); 76 STDMETHOD(ReleaseKeys)(); 76 77 77 78 STDMETHOD(COMGETTER(EventSource))(IEventSource ** aEventSource); -
trunk/src/VBox/Main/src-client/KeyboardImpl.cpp
r45030 r49386 253 253 254 254 return PutScancodes(ComSafeArrayAsInParam(cadSequence), NULL); 255 } 256 257 /** 258 * Releases all currently held keys in the virtual keyboard. 259 * 260 * @returns COM status code 261 * 262 */ 263 STDMETHODIMP Keyboard::ReleaseKeys() 264 { 265 com::SafeArray<LONG> scancodes(1); 266 scancodes[0] = 0xFC; /* Magic scancode, see PS/2 and USB keyboard devices. */ 267 return PutScancodes(ComSafeArrayAsInParam(scancodes), NULL); 255 268 } 256 269
Note:
See TracChangeset
for help on using the changeset viewer.