add GDVK plugin

This commit is contained in:
Crispy 2022-01-19 18:46:50 +01:00
parent ef744db9ae
commit aaeed533da
8 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://addons/gdvk/gdvk.gdns" type="Script" id=1]
[node name="GDVK" type="Node"]
script = ExtResource( 1 )

2
src/addons/gdvk/bin/win64/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

2
src/addons/gdvk/bin/x11/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,17 @@
[general]
singleton=false
load_once=true
symbol_prefix="gdvk_"
reloadable=true
[entry]
X11.64="res://addons/gdvk/bin/x11/libgdvk.so"
Windows.64="res://addons/gdvk/bin/win64/libgdvk.dll"
[dependencies]
X11.64=[ ]
Windows.64=[ ]
OSX.64=[ ]

View file

@ -0,0 +1,8 @@
[gd_resource type="NativeScript" load_steps=2 format=2]
[ext_resource path="res://addons/gdvk/gdvk.gdnlib" type="GDNativeLibrary" id=1]
[resource]
resource_name = "gdvk"
class_name = "GDVK"
library = ExtResource( 1 )

View file

@ -0,0 +1,10 @@
tool
extends EditorPlugin
func _enter_tree() -> void:
add_autoload_singleton("GDVK", "res://addons/gdvk/GDVK.tscn")
func _exit_tree() -> void:
remove_autoload_singleton("GDVK")

View file

@ -0,0 +1,9 @@
[plugin]
name="GDVK"
description="Godot virtual keyboard plugin
see https://github.com/CrispyPin/gdvk"
author="CrispyPin"
version="0.1.0"
script="gdvk_plugin.gd"

View file

@ -22,6 +22,7 @@ Settings="*res://addons/settings-manager/Settings.tscn"
OverlayInit="*res://addons/openvr_overlay/overlay_init.gd"
OverlayInteractionRoot="*res://addons/openvr_overlay/OverlayInteractionRoot.tscn"
OverlayManager="*res://OverlayManager.tscn"
GDVK="*res://addons/gdvk/GDVK.tscn"
[debug]
@ -35,7 +36,7 @@ window/size/height=2048
[editor_plugins]
enabled=PoolStringArray( "res://addons/godot-openvr/plugin.cfg", "res://addons/openvr_overlay/plugin.cfg", "res://addons/ovr_utils/plugin.cfg", "res://addons/settings-manager/plugin.cfg" )
enabled=PoolStringArray( "res://addons/gdvk/plugin.cfg", "res://addons/godot-openvr/plugin.cfg", "res://addons/openvr_overlay/plugin.cfg", "res://addons/ovr_utils/plugin.cfg", "res://addons/settings-manager/plugin.cfg" )
[gdnative]