Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
24 user(s) are online (12 user(s) are browsing Forums)

Members: 1
Guests: 23

davebraco, more...

Support us!

Headlines

 
  Register To Post  

Mouse Wheel and a Cybergraphics question!
Just popping in
Just popping in


See User information
Hi!!
I'm porting an aros program i wrote to Os4.
1) I use cybergraphics functions, like readpixelarray and writepixelarray with RECTFMT_RAW.
2) For mousewheel i use NM_WHEEL_UP (RAWKEY_NN_WHEEL_UP) from "devices/rawkeycodes.h"
But trying to compile the project in amidevcpp it gives that both of these don't exist.
Any clue about them? Thx!!

Go to top
Re: Mouse Wheel and a Cybergraphics question!
Just can't stay away
Just can't stay away


See User information
Sounds like you have missing .h files. what version of the SDK are you using?

Cybergraphics is emulated on OS4, it would be better to switch to the equivalent P96 commands.

I've never heard of AmiDevCPP, most OS4 stuff is compiled with GCC.

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Mouse Wheel and a Cybergraphics question!
Amigans Defender
Amigans Defender


See User information
@Severin

Quote:
I've never heard of AmiDevCPP

It's a cross-compiler suite used by developers who have no real OS4-capable machine.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Mouse Wheel and a Cybergraphics question!
Just popping in
Just popping in


See User information
Hi! I'm trying it now on the sam and codebench, but still no luck.
What file have i to include to use NM_WHEEL_UP?

Go to top
Re: Mouse Wheel and a Cybergraphics question!
Supreme Council
Supreme Council


See User information
I'm guessing the NM_xxx defines come from the "newmouse" includes. Under OS4, you don;t need that, and it's all handled by input.device (devices/input.h)

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top
Re: Mouse Wheel and a Cybergraphics question!
Home away from home
Home away from home


See User information
@Rebraist
Rigo is right about NM_xxx defines. So you can go easy way: just use the same defines (i usually just grab those includes from mos or aros and add to my sdk), but mouse-wheel will not works of course (but all will compiles and you can do your first tests at least). Or you need just fix it from beginning by adding aos4 specific mouse wheel code. Its pretty easy, all you need its add IDCMP_EXTENDEDMOUSE to the window, do include of

Quote:

#include <devices/rawkeycodes.h>
#include <devices/inputevent.h>


and add one more case in your main loop for IDCMP_EXTENDEDMOUSE.

Check how i do it in Zaphod:
https://sourceforge.net/p/zaphodeditor/code/35/

Or like i do it in the Dopus5:
https://sourceforge.net/p/dopus5allamigas/code/631/

(i.e. check diffs).

As for RECTFMT_RAW its what annoy me from time to time when do ports from aros/mos to os4, but Yannick help me to find out that in LibSDL code (original amiga SDL port, that has afterwards been ported to AROS as far as I can see from the source) have such piece of code:

Quote:

// this is an undocumented feature of CGX, and recently of AROS
// and P96, if it's not defined let define it ourselves.

#ifndef RECTFMT_RAW
#define RECTFMT_RAW (5UL)
#endif


So you can just define it like this. Through, dunno if on os4 cgx emulation it works or not, but i do it like this when i do ports and it seems ok.

As for speed of cgx emulation over p96, its pretty the same as if you will use p96 directly. At least my ports of muiowb and muimplayer use the same original CGX code in all the areas as it done by Fab originally.

As for amidevcpp, dunno if it still in mantain, because if not you can force with some outdates sdks soon or later, and if you on win32, just better to setup cygwin + os4 cross compiler and latest os4 sdk on top of it.


Edited by kas1e on 2013/10/10 18:53:24
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Mouse Wheel and a Cybergraphics question!
Just popping in
Just popping in


See User information
Thank you all!
I use AmidevCpp cause of the editor and the "click one button and compile", and because there's no os4 notebook :P
When I am at home i love to use Codebench because it's really a great piece of software!!

Go to top
Re: Mouse Wheel and a Cybergraphics question!
Amigans Defender
Amigans Defender


See User information
@rebraist

Quote:
i love to use Codebench because it's really a great piece of software!!

It is! Although we're impatiently awaiting the promised update, aren't we?

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Mouse Wheel and a Cybergraphics question!
Just can't stay away
Just can't stay away


See User information
You can use the old newmouse events on OS4, you need to run Macc and switch on the 'also send the old newmouse event' option in the mousewheel tab.

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project