diff options
Diffstat (limited to 'sources/pyside6/PySide6/Qt3DInput')
-rw-r--r-- | sources/pyside6/PySide6/Qt3DInput/CMakeLists.txt | 54 | ||||
-rw-r--r-- | sources/pyside6/PySide6/Qt3DInput/typesystem_3dinput.xml | 58 |
2 files changed, 112 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/Qt3DInput/CMakeLists.txt b/sources/pyside6/PySide6/Qt3DInput/CMakeLists.txt new file mode 100644 index 000000000..c27c27718 --- /dev/null +++ b/sources/pyside6/PySide6/Qt3DInput/CMakeLists.txt @@ -0,0 +1,54 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +project(Qt3DInput) + +set(Qt3DInput_SRC +${Qt3DInput_GEN_DIR}/qt3dinput_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qabstractactioninput_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qabstractaxisinput_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qabstractphysicaldevice_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qaction_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qactioninput_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qanalogaxisinput_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qaxis_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qaxisaccumulator_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qaxissetting_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qbuttonaxisinput_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qinputaspect_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qinputchord_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qinputsequence_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qinputsettings_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qkeyboardhandler_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qkeyevent_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qlogicaldevice_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qkeyboarddevice_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qmousedevice_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qmouseevent_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qwheelevent_wrapper.cpp +${Qt3DInput_GEN_DIR}/qt3dinput_qmousehandler_wrapper.cpp +# module is always needed +${Qt3DInput_GEN_DIR}/qt3dinput_module_wrapper.cpp) + +set(Qt3DInput_include_dirs + ${Qt3DInput_SOURCE_DIR} + ${Qt3DInput_BINARY_DIR} + ${pyside6_SOURCE_DIR} + ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS} + ${libpyside_SOURCE_DIR} + ${QtCore_GEN_DIR} + ${QtGui_GEN_DIR} + ${Qt3DCore_GEN_DIR}) + +set(Qt3DInput_libraries pyside6 + ${Qt${QT_MAJOR_VERSION}3DInput_LIBRARIES}) + +set(Qt3DInput_deps Qt3DCore) + +create_pyside_module(NAME Qt3DInput + INCLUDE_DIRS Qt3DInput_include_dirs + LIBRARIES Qt3DInput_libraries + DEPS Qt3DInput_deps + TYPESYSTEM_PATH Qt3DInput_SOURCE_DIR + SOURCES Qt3DInput_SRC + TYPESYSTEM_NAME ${Qt3DInput_BINARY_DIR}/typesystem_3dinput.xml) diff --git a/sources/pyside6/PySide6/Qt3DInput/typesystem_3dinput.xml b/sources/pyside6/PySide6/Qt3DInput/typesystem_3dinput.xml new file mode 100644 index 000000000..fbdfc5961 --- /dev/null +++ b/sources/pyside6/PySide6/Qt3DInput/typesystem_3dinput.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +--> + +<typesystem package="PySide6.Qt3DInput" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> + <load-typesystem name="Qt3DCore/typesystem_3dcore.xml" generate="no"/> + <namespace-type name="Qt3DInput"> + <object-type name="QAbstractActionInput"/> + <object-type name="QAbstractAxisInput"/> + <object-type name="QAbstractPhysicalDevice"/> + <object-type name="QAction"> + <!-- Disambiguate from QtGui/qaction.h --> + <include file-name="Qt3DInput/qaction.h" location="global"/> + </object-type> + <object-type name="QActionInput"/> + <object-type name="QAnalogAxisInput"/> + <object-type name="QAxis"/> + <object-type name="QAxisAccumulator"> + <enum-type name="SourceAxisType"/> + </object-type> + <object-type name="QAxisSetting"/> + <object-type name="QButtonAxisInput"/> + <object-type name="QInputAspect"/> + <object-type name="QInputChord"/> + <!-- On windows this raises the following error: + type 'Qt3DInput::QInputDeviceIntegration' is specified in typesystem, but not defined. + This could potentially lead to compilation errors. + <object-type name="QInputDeviceIntegration"/> + --> + <object-type name="QInputSequence"/> + <object-type name="QInputSettings"/> + <object-type name="QKeyboardDevice"/> + <object-type name="QKeyboardHandler"/> + <object-type name="QKeyEvent"/> + <object-type name="QLogicalDevice"/> + <object-type name="QMouseDevice"> + <enum-type name="Axis"/> + </object-type> + <object-type name="QMouseEvent"> + <enum-type name="Buttons"/> + <enum-type name="Modifiers"/> + </object-type> + <object-type name="QWheelEvent"> + <enum-type name="Buttons"/> + <enum-type name="Modifiers"/> + </object-type> + <object-type name="QMouseHandler"/> + <!-- On windows this raise the following error: + qt3dinput_module_wrapper.cpp.obj : error LNK2019: + unresolved external symbol "void __cdecl init_Qt3DInput_QPhysicalDeviceCreatedChangeBase(struct _object *)" + (?init_Qt3DInput_QPhysicalDeviceCreatedChangeBase@@YAXPAU_object@@@Z) referenced in function _PyInit_Qt3DInput + <object-type name="QPhysicalDeviceCreatedChangeBase"/> + --> + </namespace-type> +</typesystem> |