Oricutron patches for Mac OS X

Comments, problems, suggestions about Oric emulators (Euphoric, Mess, Amoric, etc...) it's the right place to ask. And don't hesitate to give your tips and tricks that help using these emulations in the best possible way on your favorite operating system.
User avatar
Dbug
Site Admin
Posts: 2345
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Oricutron patches for Mac OS X

Post by Dbug » Thu Mar 06, 2014 11:15 am

ibisum wrote:What I think should happen is that the key thats on your physical keyboard should be the key that you use to get the same key on the Oric/Atmos - so if you've got a French or UK keyboard on your PC, it just works the way the labels work - you type the £, you get the £.
Imo what you really want is a toggle between logical and physical layout.

The 'what I press is what I see' is nice when typing text, but that makes games unplayable.

Typically in videogames on PC we handle two types of keys, the 'CODE' ones and the 'SCAN' ones.
You want the chat input of a game to use the CODE one, but you want WASD to use the SCAN one (because WASD would be ZQSD on a French keyboard).

User avatar
Xeron
Emulation expert
Posts: 382
Joined: Sat Mar 07, 2009 5:18 pm
Contact:

Re: Oricutron patches for Mac OS X

Post by Xeron » Thu Mar 06, 2014 11:18 am

as I recall, its not as simple as enabling sdl keyboard translation, otherwise I would have done it.

the problem is modifier keys like shift or ctrl. If you let sdl map keys for you, you won't know what keys were pressed to give you the ascii code. What if the user is playing a game where shift and a letter key are used. Imagine if we're taking ascii codes from sdl and translating them to oric keypresses. For upper case you'd have to hold down shift for enough cycles for the oric software (which may not be the rom) to notice, then the letter key, wait some cycles, then release the shift key. Fine for typing, but what if the user is playing a game and still has shift held down? The game would see lots of extra shift key press/releases that may not correspond to what the user is doing.

we can't assume anything about what keys the user pressed to generate the translated ascii code that sdl gave us.

I really can't see a workable solution other than to do the mapping ourselves, since we have to translate keypresses to bits in the oric keyboard matrix.

Godzil
Squad Leader
Posts: 755
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: Oricutron patches for Mac OS X

Post by Godzil » Thu Mar 06, 2014 11:44 am

There was a large trollware discution on the SDL mailing about the keyboard management.. It's clearly a nightmare to correctly manage the keyboard under SDL..

User avatar
peacer
Flight Lieutenant
Posts: 349
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: Oricutron patches for Mac OS X

Post by peacer » Thu Mar 06, 2014 1:07 pm

But as I said, in Euphoric there was such an option too and there was no problem with playing games nor type-in any charaters.

Please don't misunderstand me. I am not comparing two emulators or emphasize that it is easy thing. I am aware that it could be diffucult task. Also besides french friends, this could be a personal wish only as not much turkish Oric users around using oric emulator :)

User avatar
ibisum
Squad Leader
Posts: 857
Joined: Fri Apr 03, 2009 8:56 am

Re: Oricutron patches for Mac OS X

Post by ibisum » Thu Mar 06, 2014 3:32 pm

Understood. So we really do need two modes, as Dbug said .. and give the user the ability to switch these modes accordingly .. so in that case we may as well go ahead and add a Virtual Oric/Atmos keyboard overlay to the interface, too .. which is .. a lot more work .. but seems to me to be necessary or else users will forever be confused about what's going on.

Not to mention it would make sense for the portable/handheld platforms.

User avatar
Hialmar
Flight Lieutenant
Posts: 318
Joined: Tue Mar 04, 2014 11:25 am
Location: Toulouse, France
Contact:

Re: Oricutron patches for Mac OS X

Post by Hialmar » Thu Mar 06, 2014 4:41 pm

A visual keyboard could be a good solution and could also be used to create/modify keymaps.

I could try to work on this.

peacer, what is the source of the picture of the Atmos keyboard you posted ?
It could be used for the visual keyboard.

Edit: just saw that it's from Wikimedia so no problem for this.
Hialmar
CEO and Silicium member.

User avatar
Xeron
Emulation expert
Posts: 382
Joined: Sat Mar 07, 2009 5:18 pm
Contact:

Re: Oricutron patches for Mac OS X

Post by Xeron » Thu Mar 06, 2014 4:48 pm

if you look at the oriic google code page, I created ready made atmos and oric 1 keyboard images for the wii port of oricutron.

User avatar
Hialmar
Flight Lieutenant
Posts: 318
Joined: Tue Mar 04, 2014 11:25 am
Location: Toulouse, France
Contact:

Re: Oricutron patches for Mac OS X

Post by Hialmar » Thu Mar 06, 2014 5:03 pm

Ah yes they are perfect.
Hialmar
CEO and Silicium member.

froggy
1st Star Corporal
Posts: 13
Joined: Tue Jul 15, 2014 3:35 pm

Re: Oricutron patches for Mac OS X

Post by froggy » Wed Jul 30, 2014 12:08 pm

Hi everyone

Where are the 6 and 6 keys gone ?

I'm running a mac under 10.9.3
Oricutron doesn't work for the Mac, so I tryed to launch it with Wine.
Well it works pretty well (the app is 500 Mo fat) except the keys 6 and 8.

same problem when I launch Oricutron 1.1 windows on XP pro through VMware fusion.

Is there a fix ?

Wine works fine with other apps, like CISCO packet tracer I use everyday on my mac this way.

It's sad because Oricutron is great. Whoever did the job, it's pretty good.

User avatar
Hialmar
Flight Lieutenant
Posts: 318
Joined: Tue Mar 04, 2014 11:25 am
Location: Toulouse, France
Contact:

Re: Oricutron patches for Mac OS X

Post by Hialmar » Wed Jul 30, 2014 12:20 pm

The fix is the keyboard mapping feature I wrote.

Just redefine the 2 keys and it will work.
Hialmar
CEO and Silicium member.

froggy
1st Star Corporal
Posts: 13
Joined: Tue Jul 15, 2014 3:35 pm

Re: Oricutron patches for Mac OS X

Post by froggy » Wed Jul 30, 2014 7:23 pm

Hialmar wrote:The fix is the keyboard mapping feature I wrote.

Just redefine the 2 keys and it will work.
thanks, I'll try to figure out how to do that.


see, I have 2 computers :
A) imac 10.9.4 french with AZERTY extended keyboard
oricutron 1.1 launches ( I discovered I had to put SDL.framework in Library/Frameworks) but only the letters on the keyboard work, not a single number

B) macbookpro 10.9.4 US with build in QWERTY keyboard
Oricutron 1.1 works fine ( I olso had to install SDL-1.2.15)

What's wrong with the A configuration ?

Is there a right list of things to install to make the emulator work ? an install procedure ?

thanks for your help

froggy
1st Star Corporal
Posts: 13
Joined: Tue Jul 15, 2014 3:35 pm

Re: Oricutron patches for Mac OS X

Post by froggy » Wed Jul 30, 2014 9:32 pm

I have another question, Oricutron Mac can't load wav files ?

I can manage them under PC version but Mac one just cannot accept the file.


thanks

User avatar
Hialmar
Flight Lieutenant
Posts: 318
Joined: Tue Mar 04, 2014 11:25 am
Location: Toulouse, France
Contact:

Re: Oricutron patches for Mac OS X

Post by Hialmar » Thu Jul 31, 2014 8:48 am

SDL doesn't work well with international keyboards on non windows OSes.
The only solution to this problem is a keyboard mapping.
You can also of course switch to an English keyboard mapping in the OS.

Did you use the WIP version or the stock 1.1 version ?

I have included the framework in the WIP version IIRC.

I will check the WAV reading problem but you'd better post a detailed report on the oricutron website.
Hialmar
CEO and Silicium member.

froggy
1st Star Corporal
Posts: 13
Joined: Tue Jul 15, 2014 3:35 pm

Re: Oricutron patches for Mac OS X

Post by froggy » Thu Jul 31, 2014 5:35 pm

Hi,

In order to make Oricutro work on my mac I had to :
1 download Oricutron 1.1 binary for OS X Intel

2 download and install SDL-1.2.15

3 open Terminal and enter the sdl config script :
case $1 in
--cflags)
echo -I/Library/Frameworks/SDL.framework/Headers
;;
--libs)
echo SDLMain.o -framework SDL -framework Cocoa
;;
esac

Now it works... but with QWERTY mapping keyboardm the little flag on the upper right corner (that's ok with me) , if FR flag the numbers don't work at all.
the WAV files are not accepted (which work with the Win emulator)
Also note that the top bar of the window says "oricutron WIP rev: 585:586M" but I didn't install the WIP one from the website .


regards,
Patrick

User avatar
Hialmar
Flight Lieutenant
Posts: 318
Joined: Tue Mar 04, 2014 11:25 am
Location: Toulouse, France
Contact:

Re: Oricutron patches for Mac OS X

Post by Hialmar » Thu Jul 31, 2014 7:51 pm

It says WIP because when I compiled the project I took the last version from the SVN and it had already some bug solved and new features.

I have just solved the problem with wav (and ort files) that weren't selectable with the file selector on OS X.

I have uploaded a new WIP version on Peter's website:
http://www.petergordon.org.uk/oricutron/index.php

Can you try it ?

It includes the keyboard mapping feature I advised you both here and on oric.org. It would save you the problem of switching to a UK/US keyboard.
Hialmar
CEO and Silicium member.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest