Search found 38 matches

by docWild
Thu Dec 01, 2011 2:53 pm
Forum: Beginners Help
Topic: Joystick Event Handler
Replies: 25
Views: 2069

Re: Joystick Event Handler

return (ButtonStates & (1 << button)) ? true : false; If you don't know what the unary (?:), bitwise AND (&) or bitshift(<<), (>>) operators do, then you should do some more reading. Does that make sense? Actually, this code shows that you should put in button numbers 1,2,3,4, and so forth....
by docWild
Thu Dec 01, 2011 1:57 pm
Forum: Beginners Help
Topic: Joystick Event Handler
Replies: 25
Views: 2069

Re: Joystick Event Handler

Would this work, placed in the loop? if((u32)joystickData.IsButtonPressed(1))                         {                                 //do action                         } Yes. The integer "1" relates to the 32 bit binary number: 0000 0000 0000 0001.. you have 31 other bits to test for ...
by docWild
Thu Dec 01, 2011 12:09 pm
Forum: Beginners Help
Topic: Joystick Event Handler
Replies: 25
Views: 2069

Re: Joystick Event Handler

Check out the SJoystickEvent struct in the IEventReceiver.h file or on the API here : http://irrlicht.sourceforge.net/docu/structirr_1_1_s_event_1_1_s_joystick_event.html You basically get a 32bit bitmap in a u32 which you can poll against known joystick info. I've never done it with irrlicht, but i...
by docWild
Thu Dec 01, 2011 10:25 am
Forum: Game Programming
Topic: Graphics vs gameplay
Replies: 18
Views: 5167

Re: Graphics vs gameplay

I grew up in the 8-bit era. Do I need to say any more?
by docWild
Thu Dec 01, 2011 9:33 am
Forum: Off-topic
Topic: Windows 8
Replies: 43
Views: 8146

Re: Windows 8

Windows 8 will be useless as it is part of the pattern....

Win 3.1 = ok
win 95 = terrible
win 98 = ok
win millenium = terrible
win XP = ok
win Vista = terrible
win 7 = OK
win 8 = YOU GUESSED IT... terrible


Ever feel like you're being manipulated?
by docWild
Thu Dec 01, 2011 9:30 am
Forum: Beginners Help
Topic: Passing structs to shaders
Replies: 11
Views: 1057

Re: Passing structs to shaders

I used to use structs all the time in C but I have no luck in using them for C++. I can't see what you're doing wrong, but what I generally do these days is use a class with public methods/attributes instead. The only real difference being that class objects are always passed by reference.
by docWild
Wed Nov 30, 2011 5:44 pm
Forum: Beginners Help
Topic: OpenGL on Ubuntu virtual machine
Replies: 5
Views: 676

Re: OpenGL on Ubuntu virtual machine

In order to access the 3d hardware from a VM would require some kind of switching at a hardware level because your host operating system is currently using it. It really isn't the point of VMs.
by docWild
Wed Nov 30, 2011 4:53 pm
Forum: Beginners Help
Topic: question to IGUI
Replies: 6
Views: 238

Re: question to IGUI

The IGUIEnvironment docs say "Adds a mesh viewer. Not 100% implemented yet. " , which is rather cryptic.