Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-07

Re: [Re: SVGALib+Keyboard, help plz!]

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Vit Kavan: Thanks, I'll check it. The FPC port from "packages" doesn't contain it, but I've…
Vit Kavan wrote 8 lines
> These implement lowlevel console based keyboard routines. If it doesn't > work, you have to find a solution inside svgalib. (does it come with > keyboard functions?) The FPC port from "packages" doesn't contain it, but I've rewritten the header files for keyboard part, it looks like working (all functions return "success", but the handler is never called.

Make sure you declared the handler as "cdecl"! Also if you've declared it as a procvar.

Jonas

Vit Kavan
Seriously, check the keyboard routines of the IDE. (keyboard.pp either in the API, or in the rtl/linux or rtl/unix directory).

Thanks, I'll check it.

These implement lowlevel console based keyboard routines. If it doesn't work, you have to find a solution inside svgalib. (does it come with keyboard functions?)

The FPC port from "packages" doesn't contain it, but I've rewritten the header files for keyboard part, it looks like working (all functions return "success", but the handler is never called.

Vit Kavan

Vit Kavan
First of all, what version of SVGAlib you have? If it's old, you're better off to upgrade it to latest version (If I remember right, 1.4.3 is the latest stable).

I have some pretty up to date version.

Anyway, I would recommend using SDL or GGI (even as a SVGAlib wrapper), SVGAlib is a quirky little bugger, that does not work properly in many situations. And it's buggy too + requires SUID root.

Sure, I've SDL working, but I'd like to have a non-X version too. Btw. can SDL work wo/ X?

Vit Kavan