DirectPython core module.
Enables Direc3D debugging. Use only if you have installed a DirectX SDK. Also call this before you create any DirectPython objects.
Enumerates all adapters and returns the results. List items are normal tuples: (devicename, vendorid, deviceid, subsysid, revision, dedicatedvideomemory, dedicatedsystemmeomry, sharedsystemmemory).
Returns unicode text from the clipboard or None if no data is available.
Returns the cursor position in screen coordinates.
Returns True if the given key is currently down. You can also test ASCII-characters and mouse buttons with this.
#Is the right arrow key down?
isKeyDown(VK_RIGHT)
#Is the "T"-key down? Must be in upper-case.
isKeyDown(ord("T"))
#Is the left mouse button down?
isKeyDown(VK_LBUTTON)
Parameters: |
|
---|
Shows a message box and returns user’s choice.
Sets the cursor position in screen coordinates.
Sets unicode text to the clipboard.
See Core d3d11 classes.