haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
44 stars 16 forks source link

TextArea and TextField can't input text #14

Closed R3D9477 closed 4 years ago

R3D9477 commented 7 years ago

Expected Behavior

Must be entered text from keyboard and displayed in textfield/textarea.

Current Behavior

Does not nothing after keyboard key pressed.

Test app / minimal test case

Samples available here (TextArea) and here (TextField).

Your Environment

Haxe 3.4.2 Kha from git haxeui-core from git haxeui-kha from git

Thanks.

ianharrigan commented 6 years ago

Can this be closed now?

R3D9477 commented 6 years ago

Compilation excepted on latest KodeStudio:

Haxe language server started with Kha at /media/data/home/user/Software/Haxe/KodeStudio/resources/app/extensions/kha/Kha
Initializing completion cache...
Failed - try fixing the error(s) and restarting the language server:

/home/r3d9u11/.haxelib_repo/haxeui-kha/0,0,2/haxe/ui/backend/AssetsBase.hx:61: characters 18-32 : Class<kha.Font> has no field fromBytes

(haxeui-kha 0.0.2 release from haxelib repository)

ianharrigan commented 6 years ago

what kha version? Git?

R3D9477 commented 6 years ago

@ianharrigan No, release of Kha is included into KodeStudio

ianharrigan commented 6 years ago

is that the latest? fromBytes is relatively new iirc

sh-dave commented 6 years ago

Font.fromBytes was implemented ~1 month after KS 17.9.1 was released.

ianharrigan commented 6 years ago

paging Dr @RobDangerous :)

RobDangerous commented 6 years ago

Yes, you need a later release than the one included in Kode Studio. You can get it via git and set the khaPath option in Kode Studio. See https://github.com/Kode/Kha/wiki/Getting-Started

R3D9477 commented 6 years ago

@RobDangerous git-version of Kha can't be compiled in Linux

...
...
...
LINK -DPCRE_STATIC -DHXCPP_SET_PROP -DHXCPP_VISIT_ALLOCS -DKORE -DROTATE90 -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3  -c ../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp -o computeimpl.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp: In function ‘int {anonymous}::convertInternalFormat(Kore::Graphics4::RenderTargetFormat)’:
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:40:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target64BitFloat:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:42:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target32BitRedFloat:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:44:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target128BitFloat:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:46:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target16BitDepth:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:48:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target8BitRed:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:50:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target16BitRedFloat:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:52:19: error: ‘Kore::Graphics4::RenderTargetFormat’ is not a class or namespace
   case Graphics4::RenderTargetFormat::Target32Bit:
                   ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp: In function ‘void Kore::Compute::setTexture(Kore::ComputeTextureUnit, Kore::Graphics4::Texture*, Kore::Compute::Access)’:
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:328:30: error: ‘Access’ is not a class or namespace
  GLenum glaccess = access == Access::Read ? GL_READ_ONLY : (access == Access::Write ? GL_WRITE_ONLY : GL_READ_WRITE);
                              ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:328:71: error: ‘Access’ is not a class or namespace
  GLenum glaccess = access == Access::Read ? GL_READ_ONLY : (access == Access::Write ? GL_WRITE_ONLY : GL_READ_WRITE);
                                                                       ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp: In function ‘void Kore::Compute::setTexture(Kore::ComputeTextureUnit, Kore::Graphics4::RenderTarget*, Kore::Compute::Access)’:
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:338:30: error: ‘Access’ is not a class or namespace
  GLenum glaccess = access == Access::Read ? GL_READ_ONLY : (access == Access::Write ? GL_WRITE_ONLY : GL_READ_WRITE);
                              ^
../../../../../../../../Software/Haxe/Empty/Kha/Kore/Backends/Graphics4/OpenGL/Sources/Kore/ComputeImpl.cpp:338:71: error: ‘Access’ is not a class or namespace
  GLenum glaccess = access == Access::Read ? GL_READ_ONLY : (access == Access::Write ? GL_WRITE_ONLY : GL_READ_WRITE);
                                                                       ^
makefile:1967: recipe for target 'computeimpl.o' failed
make: *** [computeimpl.o] Error 1
Compilation failed.

Linux Mint 18.3 x64

RobDangerous commented 6 years ago

I can not reproduce that, compiles fine for me (latest Ubuntu) and Travis builds look good as well. Can you try a clean build (aka delete the build dir)?

R3D9477 commented 6 years ago

@RobDangerous I'm trying with clean project (deleted build and korefile.js before compilation), but nothing changes, I still get this exception

well, if issue of original topic was fixed in latest version of Kha and works fine for someone, then issue can be closed, I think

RobDangerous commented 6 years ago

Please create a new issue about that compilation problem though, have to figure that out.

R3D9477 commented 6 years ago

@RobDangerous done

R3D9477 commented 6 years ago

successfully compiled now, but TextArea is still empty

mundusnine commented 4 years ago

This can be closed; Textfield and TextArea work as designed.