Recent Posts

Pages: [1] 2 3 ... 10
1
Programming / Re: redirect stdout, stderr and stdin
« Last post by Rich Walsh on July 29, 2021, 09:24:16 pm »
I've attached a sample function that should redirect stdIn/Out/Err to 3 pipes. I haven't tested it.

Note that its style is extremely simple. Until something you're unfamiliar with is actually working, optimization and excess cleverness just get in the way.
2
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Jochen Schäfer on July 29, 2021, 08:55:32 am »
Hi

I have a noob question about SDL development. For games that had been developed with SDL 1x, is it possible to recompile those with SDL 2.x? or all the game code (like functions calls, etc) will need to be changed to use the SDL 2.x instead?

Regards
Their migration guide is here: https://wiki.libsdl.org/MigrationGuide.
The compability layer is here: https://github.com/libsdl-org/sdl12-compat
3
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Jochen Schäfer on July 29, 2021, 08:48:43 am »
Has anyone looked at how hard it would be to add USB Joystick support to SDL? I know next to nothing about it except a little experience with old style joysticks.
Seems basic support would be 2 axis and 2 button support, for many games even joypad support where a couple of buttons and the axis is basically binary or trinary, would be nice.
I ask because I recently revisited Rocks'N'Diamonds (our SDL mixer needs mod support), which reminded me how much more fun it was to play with a joypad rather then the keyboard.
I have thought about it, and it is on my bucket list. The linux drivers use the hidapi library (it is even part of SDL2). I was thinking about using that code for OS/2.
4
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Paul Smedley on July 29, 2021, 04:59:46 am »
Hi Dave,
Has anyone looked at how hard it would be to add USB Joystick support to SDL? I know next to nothing about it except a little experience with old style joysticks.
Seems basic support would be 2 axis and 2 button support, for many games even joypad support where a couple of buttons and the axis is basically binary or trinary, would be nice.
I ask because I recently revisited Rocks'N'Diamonds (our SDL mixer needs mod support), which reminded me how much more fun it was to play with a joypad rather then the keyboard.

I haven't looked into it at all, but I'd assume any support would use libusb (which we have) so surely it wouldn't be that difficult.

Cheers,

Paul.
5
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Dave Yeo on July 29, 2021, 02:01:25 am »
Has anyone looked at how hard it would be to add USB Joystick support to SDL? I know next to nothing about it except a little experience with old style joysticks.
Seems basic support would be 2 axis and 2 button support, for many games even joypad support where a couple of buttons and the axis is basically binary or trinary, would be nice.
I ask because I recently revisited Rocks'N'Diamonds (our SDL mixer needs mod support), which reminded me how much more fun it was to play with a joypad rather then the keyboard.
6
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Dave Yeo on July 29, 2021, 01:56:57 am »
Hi

I have a noob question about SDL development. For games that had been developed with SDL 1x, is it possible to recompile those with SDL 2.x? or all the game code (like functions calls, etc) will need to be changed to use the SDL 2.x instead?

Quickly looking, it seems the video handling has changed, things like no more full screen, rather a large window, perhaps with no menu etc. And the keyboard input also has changed, might mostly affect Unicode, along with changes in the event queue. Seems a lot of games are focused on the hardware rendering.
This is the page I read, https://www.doomworld.com/forum/topic/86368-sdl-1x-vs-sdl-2/
7
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Dave Yeo on July 29, 2021, 01:50:31 am »
But in BWWs version, I fixed an init error in the display structures, which should be applied to Digis version, if not already done.

I didn't find your fix.

https://github.com/bitwiseworks/SDL2-os2/commit/f5057a506716d15c405a545403b316e807d7069e

Thanks, guess I'll try to build it.
8
Applications / Re: David's Doodles
« Last post by David Graser on July 29, 2021, 12:41:01 am »
Made some new colored glove pointers, both right and left handed.
9
Games / Re: OS/2 - ArcaOS - Native Games
« Last post by Martin Iturbide on July 28, 2021, 10:55:08 pm »
Hi

I have a noob question about SDL development. For games that had been developed with SDL 1x, is it possible to recompile those with SDL 2.x? or all the game code (like functions calls, etc) will need to be changed to use the SDL 2.x instead?

Regards
10
Programming / redirect stdout, stderr and stdin
« Last post by Jan-Erik Lärka on July 28, 2021, 09:31:41 pm »
Hello,

would like to run one vio application at the time in a separate thread and redirect stdout, stderr and stdin to control it. Tried variations to the example found in "IBM Developers Toolkit version 4.5", "Control Program Programming Giude and Reference", "Redirecting Standard I/O for Child Processes".

The example only describe how to do it for stdout, but I've found examples that include stderr or stdin, but not quite the way intended here.

sqlite3.exe would be a great example.
One can start it and enter a command, wait for the output and then enter a new command (sql query) and continue, and not just a command at startup.

One would be able to write the support library required for oosqlite and Open Object Rexx 5.0.0 on OS/2-ArcaOS.  ;)

See attachment... Please do tell how it should be written instead.

//Jan-Erik
Pages: [1] 2 3 ... 10