Click Here
home features news forums classifieds faqs links search
6155 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!

/  Forum Index
   /  MiniGL
      /  Possible bug?
Register To Post

PosterThread
whiz 
Possible bug?
Posted on 10-Mar-2010 21:45:20
#1 ]
Member
Joined: 28-May-2009
Posts: 26
From: Turin - Italy

Hi all,

i'm continuing working on the Amiga GL implementation and few minutes ago I've seen a strange thing.

In glut.h there are all the #define for the special keys but their values are all above 256. The type for the keyboard function is unsigned char so its value can be in range 0-255...
I've seen in the interfaces/glut.h that is defined also as unsigned char...

Is this a bug or I am missing somethings?
On Win32 system this functions use a int as parameter

Thank you

 Status: Offline
Profile     Report this post  
whiz 
Re: Possible bug?
Posted on 11-Mar-2010 8:07:07
#2 ]
Member
Joined: 28-May-2009
Posts: 26
From: Turin - Italy

up

 Status: Offline
Profile     Report this post  
AlexC 
Re: Possible bug?
Posted on 11-Mar-2010 8:34:43
#3 ]
Super Member
Joined: 22-Jan-2004
Posts: 1301
From: City of Lost Angels, California.

@whiz

All I know is that the keys do work as intended when using these defines, as can be checked with the arrow keys used by the logo and gears3 demos.

Beyond that your question remains valid seeing how the keyfunc prototype has its first argument defined as a uint8 which couldn't hold any value larger than 255 but it seems unlikely to be a coincidence that the define precisely start at 256.

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
whiz 
Re: Possible bug?
Posted on 11-Mar-2010 8:48:17
#4 ]
Member
Joined: 28-May-2009
Posts: 26
From: Turin - Italy

I've tried using these values but they doesn't work... tonight I'll try again... here in office I don't have my amiga ;)

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle