On 9 November 2010 07:25, Jay Tennant <[email protected]> wrote:
> Are there any suggestions for gfx_directx? I know a few
> things that semi-annoy me, and I'm sure must annoy others.
> Maybe some features could be developed a little more?
>
> I'd like the sleep mode crash to be resolved. I'm
> starting to research how to use the Window's system
> message WM_POWERBROADCAST to determine when to release
> directx resources, and then when to reallocate them upon
> resuming.
>
> I'd like the hotswapping-of-displays crashes to be
> resolved.
>
> I'd like the "Refresh Joysticks" option to refresh
> automatically upon plugging in or unplugging a joystick
> device.
>
> The joysticks to have a configuration menu.
>
> The settings to be saved between sessions, such as
> setting screenshot format, resolution, joystick config,
> checked settings, etc.

OK, OK, time to look into preference files.

> The io_setmouse() to move the mouse to the correct
> screen location (it's off by a pixel, I think. You can
> see it when in the tile editor, and pressing the
> keyboard arrows in any direction. The mouse doesn't quite
> reach the right interval.)
>

The only thing that annoys me (I haven't encountered any other
problems) is that fast keypresses are lost. Switching to io_keybits is
actually a pretty tiny amount of work. Do something like the
following:

On keydown, change
m_scancodes[ c_vk2fb[wParam] ] = 0x8;
to
m_scancodes[ c_vk2fb[wParam] ] = 0x7;

On keyup change
m_scancodes[ c_vk2fb[wParam] ] = 0x0;
to
m_scancodes[ c_vk2fb[wParam] ] &= 0x6;

And during a call to io_keybits, do
m_scancodes[i] &= 0x1;
for each i.


Also, I notice that the +/= key doesn't work.

Also, I'm going to deviate from FB's scancodes, adding scancodes for
the missing keys (numpad / ?) gfx_fb won't support them, but all
others can. I noticed that gfx_directx is the only backend which
supports typing with the numpad!
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to