VirtualBox

Changeset 47848 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Aug 19, 2013 4:34:02 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88142
Message:

Main: API event for multitouch input.

Location:
trunk/src/VBox/Main/idl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r47837 r47848  
    1946519465  <enum
    1946619466    name="VBoxEventType"
    19467     uuid="84af836d-0afc-4598-b9f4-37bf34d13cbd"
     19467    uuid="e40cbdc9-ef63-4407-9b7b-2d1201a39bd1"
    1946819468    >
    1946919469
     
    1983419834      </desc>
    1983519835    </const>
     19836    <const name="OnGuestMultiTouch" value="93">
     19837      <desc>
     19838        See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
     19839      </desc>
     19840    </const>
    1983619841    <!-- Last event marker -->
    19837     <const name="Last" value="93">
     19842    <const name="Last" value="94">
    1983819843      <desc>
    1983919844        Must be last event, used for iterations and structures relying on numerical event values.
     
    2073620741    </attribute>
    2073720742
     20743  </interface>
     20744
     20745  <interface
     20746    name="IGuestMultiTouchEvent" extends="IEvent"
     20747    uuid="be8a0eb5-f4f4-4dd0-9d30-c89b873247ec"
     20748    wsmap="managed" autogen="VBoxEvent" id="OnGuestMultiTouch"
     20749    >
     20750    <desc>
     20751      Notification when guest touch screen event happens.
     20752    </desc>
     20753    <attribute name="contactCount" type="long" readonly="yes">
     20754      <desc>
     20755        Number of contacts in the event.
     20756      </desc>
     20757    </attribute>
     20758    <attribute name="xPositions" type="short" safearray="yes" readonly="yes">
     20759      <desc>
     20760        X positions.
     20761      </desc>
     20762    </attribute>
     20763    <attribute name="yPositions" type="short" safearray="yes" readonly="yes">
     20764      <desc>
     20765        Y positions.
     20766      </desc>
     20767    </attribute>
     20768    <attribute name="contactIds" type="unsigned short" safearray="yes" readonly="yes">
     20769      <desc>
     20770        Contact identifiers.
     20771      </desc>
     20772    </attribute>
     20773    <attribute name="contactFlags" type="unsigned short" safearray="yes" readonly="yes">
     20774      <desc>
     20775        Contact state.
     20776        Bit 0: in contact.
     20777        Bit 1: in range.
     20778      </desc>
     20779    </attribute>
     20780    <attribute name="scanTime" type="unsigned long" readonly="yes">
     20781      <desc>
     20782        Timestamp of the event in milliseconds. Only relative time between events is important.
     20783      </desc>
     20784    </attribute>
    2073820785  </interface>
    2073920786
  • trunk/src/VBox/Main/idl/comimpl.xsl

    r45483 r47848  
    150150          <xsl:value-of select="'BYTE'" />
    151151        </xsl:when>
     152        <xsl:when test="$type='unsigned short'">
     153          <xsl:value-of select="'USHORT'" />
     154        </xsl:when>
     155        <xsl:when test="$type='short'">
     156          <xsl:value-of select="'SHORT'" />
     157        </xsl:when>
    152158        <xsl:when test="$type='unsigned long'">
    153159          <xsl:value-of select="'ULONG'" />
     
    294300         </xsl:variable>
    295301         <xsl:value-of select="       '#ifdef RT_OS_WINDOWS&#10;'"/>
    296          <xsl:value-of select="       '              SAFEARRAY *    aPtr = va_arg(args, SAFEARRAY *);&#10;'"/>
    297          <xsl:value-of select="concat('              com::SafeArray&lt;', $elemtype,'&gt;   aArr(aPtr);&#10;')"/>
     302         <xsl:value-of select="concat('              SAFEARRAY *aPtr_', @name, ' = va_arg(args, SAFEARRAY *);&#10;')"/>
     303         <xsl:value-of select="concat('              com::SafeArray&lt;', $elemtype,'&gt;   aArr_', @name, '(aPtr_', @name, ');&#10;')"/>
    298304         <xsl:value-of select="       '#else&#10;'"/>
    299          <xsl:value-of select="       '              PRUint32 aArrSize = va_arg(args, PRUint32);&#10;'"/>
    300          <xsl:value-of select="       '              void*    aPtr = va_arg(args, void*);&#10;'"/>
    301          <xsl:value-of select="concat('              com::SafeArray&lt;', $elemtype,'&gt;   aArr(aArrSize, (', $elemtype,'*)aPtr);&#10;')"/>
     305         <xsl:value-of select="concat('              PRUint32 aArrSize_', @name, ' = va_arg(args, PRUint32);&#10;')"/>
     306         <xsl:value-of select="concat('              void*    aPtr_', @name, ' = va_arg(args, void*);&#10;')"/>
     307         <xsl:value-of select="concat('              com::SafeArray&lt;', $elemtype,'&gt;   aArr_', @name, '(aArrSize_', @name, ', (', $elemtype,'*)aPtr_', @name, ');&#10;')"/>
    302308         <xsl:value-of select="       '#endif&#10;'"/>
    303          <xsl:value-of select="concat('              ',$obj, '->set_', @name, '(ComSafeArrayAsInParam(aArr));&#10;')"/>
     309         <xsl:value-of select="concat('              ',$obj, '->set_', @name, '(ComSafeArrayAsInParam(aArr_', @name, '));&#10;')"/>
    304310      </xsl:when>
    305311      <xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette