2 registered members (dr_panther, 1 invisible),
643
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
mouse_sync = on drives me mad
#117292
03/14/07 02:18
03/14/07 02:18
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
OP
Expert
|
OP
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Hello everybody,
my question is, if there are any further limitations than the bitmaps dimensions. If i got the point correctly, the the bitmap has to be 32x32 in window mode and 32x16 in fullscreen mode. My bitmaps fullfill that, but the cursor still gets scaled strangely.
Are there any restrictions other than that? Are maybe alpha channels forbidden? I don't get the point here...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: mouse_sync = on drives me mad
[Re: Uhrwerk]
#117293
03/14/07 09:36
03/14/07 09:36
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
My advice: move away from native mouse_maps's. Assign a dummy bmap to mouse_map (1x1 pixel black or tga with alpha = 0) and use a panel that is being synchronized with the mousepointer. By this you are able to circumvent the size limitation and any other sideeffects, plus you are free to use other cool features you can do normally just with panels, for example scaling. When you implement a resolution-free display with scaling all panels and stuff, the panel solution for mouse cursors will be useful, because you can scale the cursor panel as well so that the cursor is itself resolution independent as well.
If you want to keep the default button behaviour for panels, the attached panel needs an offset of +1/+1 pixel, other wise it would cover the mousemap/cursor and the buttons/entities can't receive mouse events. If you are smart enough, you can write your own mouse event functions and callbacks so that you have full functionality even with a panel solution. Just in case you dont care about offsets (maybe the cursor is under the attached panel).
I had also a lot of trouble with hardware cursor synchronization, so, I abandoned this and made it on my own which is quiet more satisfying than the GS mouse support.
Cheers Christian
Last edited by HeelX; 03/14/07 09:37.
|
|
|
Re: mouse_sync = on drives me mad
[Re: HeelX]
#117294
03/14/07 14:10
03/14/07 14:10
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
OP
Expert
|
OP
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Well, that's a lot of usefull tips. Thank you, Christian. I'll for sure have a look into this.
On the other hand: This can't be so hard. I'd really love to know what I am doing wrong. Creating two bitmaps with the correct dimenstions shouldn't be asked to much of me. :\
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: mouse_sync = on drives me mad
[Re: HeelX]
#117297
03/14/07 17:25
03/14/07 17:25
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
OP
Expert
|
OP
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Quote:
Did you tried it with 2 bitmaps (.bmp!) in both sizes.. does it work? Did you tested it the same with tgas with and without alpha channels? Did you checked the behaviour with DDS files and as well PCX?
Yes I tried both sizes, even vice versa as told in the manual. That doesn't work. Removing the alpha channels makes mouse_sync work, however, the size of the bitmaps then doesn't matter. I even tried exotic sizes like 40x40. Runs without problems, as soon as the alpha channel is removed. However, without an alphachannel the cursor looks really dumb.
Quote:
If this an error, compile a testprogram and post it in the bughuntforum. If you need more information on the method I mentioned, you can still contact me.
I guess that's the way to go. But I will run a few more testruns before posting this. Nothing is more embarassing than posting a bug which isn't a bug. Thank you for your kind offer. If required I'll make use of that.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: mouse_sync = on drives me mad
[Re: Uhrwerk]
#117298
03/16/07 13:22
03/16/07 13:22
|
Joined: Nov 2004
Posts: 888
beegee
User
|
User
Joined: Nov 2004
Posts: 888
|
I can advice you don't use mouse_sync, because then the mouse cursor is faster than the A6 engine reacts. This means buttons will recognize the mouse cursor later. So, this function hasn't got any advantages.
Fratch - Newer statistics panel for GameStudio
|
|
|
Re: mouse_sync = on drives me mad
[Re: beegee]
#117299
03/16/07 14:10
03/16/07 14:10
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
OP
Expert
|
OP
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
The cursor is updated several times a frame. That's true.However, that doesn't affect the way buttons work. It only makes your mouse movement smoother.
I've found out, that mouse_maps with mouse_enabled may contain alpha channels, but their values must always be 0 or 255, so that you gain something like a visibility bitmask.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: mouse_sync = on drives me mad
[Re: beegee]
#117301
03/16/07 21:06
03/16/07 21:06
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
OP
Expert
|
OP
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Well, yes, if you're up to over events, then you're right. If you want to use click events only it doesn't matter.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|