Page 2 of 3

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 11:15 am
by Dbug
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).

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 11:18 am
by Xeron
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.

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 11:44 am
by Godzil
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..

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 1:07 pm
by peacer
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 :)

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 3:32 pm
by ibisum
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.

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 4:41 pm
by Hialmar
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.

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 4:48 pm
by Xeron
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.

Re: Oricutron patches for Mac OS X

Posted: Thu Mar 06, 2014 5:03 pm
by Hialmar
Ah yes they are perfect.

Re: Oricutron patches for Mac OS X

Posted: Wed Jul 30, 2014 12:08 pm
by froggy
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.

Re: Oricutron patches for Mac OS X

Posted: Wed Jul 30, 2014 12:20 pm
by Hialmar
The fix is the keyboard mapping feature I wrote.

Just redefine the 2 keys and it will work.

Re: Oricutron patches for Mac OS X

Posted: Wed Jul 30, 2014 7:23 pm
by froggy
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

Re: Oricutron patches for Mac OS X

Posted: Wed Jul 30, 2014 9:32 pm
by froggy
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

Re: Oricutron patches for Mac OS X

Posted: Thu Jul 31, 2014 8:48 am
by Hialmar
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.

Re: Oricutron patches for Mac OS X

Posted: Thu Jul 31, 2014 5:35 pm
by froggy
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

Re: Oricutron patches for Mac OS X

Posted: Thu Jul 31, 2014 7:51 pm
by Hialmar
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.