Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
31 user(s) are online (16 user(s) are browsing Forums)

Members: 1
Guests: 30

Dandy, more...
Support us!
Recent OS4 Files
OS4Depot.net





Mouse Wheel and a Cybergraphics question!
Just popping in
Joined:
2010/6/22 10:59
Posts: 49
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!!

   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Just can't stay away
Joined:
2006/11/24 18:52
From Gloucestershire, UK.
Posts: 1099
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>
   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Quite a regular
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 911
@Severin

Quote:
I've never heard of AmiDevCPP

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

_________________
Smoke me a kipper, I'll be back for breakfast!
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Just popping in
Joined:
2010/6/22 10:59
Posts: 49
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?

   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Supreme Council
Joined:
2006/11/19 18:16
From London, England
Posts: 1252
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
   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4155
@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 17:53:24
_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Just popping in
Joined:
2010/6/22 10:59
Posts: 49
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!!

   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Quite a regular
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 911
@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?

_________________
Smoke me a kipper, I'll be back for breakfast!
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

Re: Mouse Wheel and a Cybergraphics question!
Just can't stay away
Joined:
2006/11/24 18:52
From Gloucestershire, UK.
Posts: 1099
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>
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project