Search found 35 matches

by sash
Sat Jan 10, 2015 8:40 pm
Forum: Advanced Help
Topic: Linux: KEY_KEY_X instead of KEY_NUMPADX
Replies: 7
Views: 1799

Re: Linux: KEY_KEY_X instead of KEY_NUMPADX

Hi,
In the last svn trunk version there's a dedicated method

Code: Select all

EKEY_CODE CIrrDeviceLinux::getKeyCode(XEvent &event)
and it doesn't work.
by sash
Sat Jan 10, 2015 10:48 am
Forum: Advanced Help
Topic: Linux: KEY_KEY_X instead of KEY_NUMPADX
Replies: 7
Views: 1799

Re: Linux: KEY_KEY_X instead of KEY_NUMPADX

As I can see current svn trunk version is already refactored, but this bug still presents in the trunk. The good news X11 clearly distingushes between arrows, numpad arrows, digits and numpad digits with respect of numlock state. I was able to (quick, not thoroughly tested) fix it in both 1.8.1 and ...
by sash
Thu Jan 08, 2015 10:00 am
Forum: Advanced Help
Topic: Linux: KEY_KEY_X instead of KEY_NUMPADX
Replies: 7
Views: 1799

Re: Linux: KEY_KEY_X instead of KEY_NUMPADX

CuteAlien wrote:but my first guess would be that X11 maybe never sends the XK_KP codes.
Currently I postponed input part of my application, but I hope I will look closer on this problem soon.
by sash
Sat Dec 27, 2014 8:37 pm
Forum: Advanced Help
Topic: Linux: KEY_KEY_X instead of KEY_NUMPADX
Replies: 7
Views: 1799

Linux: KEY_KEY_X instead of KEY_NUMPADX

Hello. I noticed Irrlicht under linux sends arrows for numpad keys, regardless of numlock state. Ok, it seems like this is a bug and fixed in svn trunk, right? http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=13869&start=315#p289630 Also I noticed    void CIrrDeviceLinux::createKeyM...
by sash
Mon Dec 08, 2014 8:26 pm
Forum: Beginners Help
Topic: Classes for making mesh nodes
Replies: 23
Views: 2522

Re: Classes for making mesh nodes

CuteAlien, sure, I just got 500 http error from sourceforge when composed message.
Fixed initial message.
by sash
Mon Dec 08, 2014 8:00 pm
Forum: Beginners Help
Topic: Classes for making mesh nodes
Replies: 23
Views: 2522

Re: Classes for making mesh nodes

Azimov,

Code: Select all

scene::IAnimatedMesh* IrrlichtManager::LoadMesh
This is a method LoadMesh of class IrrlichtManager returning pointer to IAnimatedMesh (located in namespace "scene").
Wow... never thought it could take such a number of words :)
by sash
Sun Oct 19, 2014 4:15 pm
Forum: Advanced Help
Topic: Cross library string problem. New to Irr. (But not coding)
Replies: 16
Views: 2039

Re: Cross library string problem. New to Irr. (But not codi

then it seems pointless for me to have my own name for the object. And if you'll need more than just a name ? It seems like you will. I believe this is very reasonable to have your own manager and store any data entities there (including name and pointer to Irrlicht object). This is exactly what I'...
by sash
Sun Sep 14, 2014 5:14 pm
Forum: Beginners Help
Topic: General Question: Projection of a 2D GUI on a 3D plane?
Replies: 1
Views: 281

Re: General Question: Projection of a 2D GUI on a 3D plane?

1. It is possible to render GUI to bitmap and use it as texture. There is a "13.RenderToTexture" demo.
2. Regarding to video (clickable areas) - this is a little tricky, but I guess it could be done with triangle selector and transformation of mouse coords.
by sash
Thu May 01, 2014 5:52 pm
Forum: Advanced Help
Topic: EET_USER_EVENT. Possible collisions with window messages.
Replies: 4
Views: 735

Re: EET_USER_EVENT. Possible collisions with window messages

CuteAlien, thanks.
Although this is not my actual code, but I think you convinced me not to use EventReceiver, especially for tasks not related to Irrlicht device.
by sash
Wed Apr 30, 2014 6:52 pm
Forum: Advanced Help
Topic: EET_USER_EVENT. Possible collisions with window messages.
Replies: 4
Views: 735

Re: EET_USER_EVENT. Possible collisions with window messages

Here it is (simplified for clarity)   // define my own user event const u32 EET_CUSTOM_EVENT = (u32)EET_USER_EVENT + 1;   // ...... eventReceiver     switch (evt.EventType)     {       // .....       case (EET_KEY_INPUT_EVENT) :         return actionManager->handleKeyboard(evt.KeyInput);         // ...
by sash
Tue Apr 29, 2014 4:52 pm
Forum: Advanced Help
Topic: EET_USER_EVENT. Possible collisions with window messages.
Replies: 4
Views: 735

EET_USER_EVENT. Possible collisions with window messages.

Hi all, just some thoughts about user events: I need some specific messaging between components of my application (win/linux/possibe mac). This is why EET_USER_EVENT exists for, right? However I think using EET_USER_EVENT is not very safe, because device forwards WM_USER messages and others for anot...
by sash
Sat Mar 15, 2014 7:42 am
Forum: Code Snippets
Topic: Keys/keycodes as nice string array
Replies: 1
Views: 2016

Re: Keys/keycodes as nice string array

Sorry, if I revived old thread, but just thanks: it comes handy and useful to me.
by sash
Tue Nov 30, 2010 12:14 am
Forum: Beginners Help
Topic: sending commands trough the events
Replies: 3
Views: 542

Re: sending commands trough the events

as i try to change the s32 data variables (UserData1 && UserData2) to stringc You just cannot "change" s32 (integer) to stringc (let's call it array) even with a typecast. It's common practice to submit just a pointers to your data (whatever it is - strings, structs, objects) cast...
by sash
Mon Nov 29, 2010 2:02 pm
Forum: Beginners Help
Topic: PostMessage (WM_USER) from another process
Replies: 3
Views: 878

It shouldn't matter whether the message is internal or external, provided you're passing it using the right HWND. Are you sure the problem isn't elsewhere? Well, yes, (it seems like :)) I'm sure it's ok with HWND and inter-process messages - because PostMessage from Irrlicht to another application ...
by sash
Mon Nov 29, 2010 12:35 am
Forum: Beginners Help
Topic: PostMessage (WM_USER) from another process
Replies: 3
Views: 878

PostMessage (WM_USER) from another process

Hello, Is it possible to handle in Irrlicht (Win32) application WM_USER messages sent from another process to "embedded" Irrlicht window ? PostMessage(hwnd, WM_USER..) call from the same Irrlicht application works ok and generates EET_USER_EVENT as expected ... however PostMessage from ano...