1
0
Fork 0
Commit graph

26 commits

Author SHA1 Message Date
krcroft
5287559aee Don't initialize and manage joysticks in SDLmain
Two notable changes:

1. Eliminates the joystick setup from SDLmain, allowing
the mapper's QueryJoysticks() function to be the sole
setup and configuration point for both the SDL Joystick
subsystem and DOSBox's internal configuration of the
joysticks.

2. SDLmain's event loop previously perform some joystick-
specific timing and always called the Mapper's UpdateJoysticks
function; neither of which are needed if the user has disabled
joystick support or if joysticks aren't physically present.
This update now make this entire process conditional on both
of the latter (which is set by the Mapper's QueryJoysticks).
2020-04-22 02:07:55 +02:00
krcroft
239396fec8 Add AUTOTYPE to DOSBox's programs
AUTOTYPE performs scripted keyboard entry into the running
DOS program.

It can be used to reliably skip intros, answer Q&A style questions
that some games ask on startup, or conduct a simple demo.

It allows for delaying input by any number of fractional seconds,
as well defining the pacing between keystrokes. It uses the
comma character "," to insert additional delays similar to modern
phone numbers.

It uses key_* names as defined by the mapper to avoid using SDL
scancodes[1], which are unstable across platforms. This approach
also allows the triggering of custom key bindings the use has
defined.

[1] https://wiki.libsdl.org/SDL_GetScancodeName

"Warning: The returned name is by design not stable across
platforms, e.g. the name for SDL_SCANCODE_LGUI is "Left GUI" under
Linux but "Left Windows" under Microsoft Windows, and some
scancodes like SDL_SCANCODE_NONUSBACKSLASH don't have any name at
all. There are even scancodes that share names, e.g.
SDL_SCANCODE_RETURN and SDL_SCANCODE_RETURN2 (both called
"Return"). This function is therefore unsuitable for creating a
stable cross-platform two-way mapping between strings and
scancodes."
2020-04-04 04:10:06 +02:00
krcroft
a1a3e0203d Only initialize the mapper once during startup 2020-03-21 23:41:06 +01:00
Joshua Fern
f2029d71d8 Update copyright dates to 2020 2020-03-07 00:18:01 +01:00
Peter Veenstra
1fbaff47fc Update year and address of FSF
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4183
2019-01-25 14:09:58 +00:00
Peter Veenstra
5bb10db88b Time keeps on ticking
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4109
2018-05-29 12:58:58 +00:00
Peter Veenstra
6cf39c1fc6 Years update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4021
2017-05-30 11:35:08 +00:00
Peter Veenstra
0f4c92ca32 Year update.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3878
2015-01-06 14:40:32 +00:00
Peter Veenstra
2fea508f7f Year update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3812
2013-01-15 09:03:13 +00:00
Peter Veenstra
999f33de27 Update year. Remove CVS tags
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3700
2011-04-26 09:34:55 +00:00
Ralf Grillenberger
143beec6b1 Add new features to the config command for control of the config file:
- manipulate the autoexec section
- display information on sections and values
- show the used config files and startup command line parameters 
- restart capability
- save config files either in the config or program directory

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3651
2010-10-28 17:35:45 +00:00
Peter Veenstra
a78b2c4f8b Update year
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3548
2010-02-11 13:36:50 +00:00
Peter Veenstra
fbfe0dbf3d Some mapper fixes related to interfacing with mapper overlay. Fixes missing keyups etc. and these :)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3415
2009-06-01 10:26:14 +00:00
Peter Veenstra
16d14b78e1 Some year and version numbers
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3410
2009-05-27 09:15:42 +00:00
Peter Veenstra
e08ea925b7 pedantic warnings.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3209
2008-08-24 16:43:06 +00:00
Peter Veenstra
fdd16dea1a Happy New Year\!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2728
2007-01-08 19:45:42 +00:00
Peter Veenstra
3b7451fe35 Some better const usage.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2586
2006-04-08 19:41:49 +00:00
Sjoerd van der Berg
b81c210530 New format for mapper handlers to support keeping keys pressed.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2488
2006-02-12 23:23:52 +00:00
Peter Veenstra
df67775306 time passes on and on....
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2480
2006-02-09 11:47:57 +00:00
Sjoerd van der Berg
16e30fb710 Add the missing losing focus call
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2453
2006-01-30 10:20:25 +00:00
Peter Veenstra
9aa295d8aa new include system
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2137
2005-03-24 10:32:09 +00:00
Peter Veenstra
2094d8b985 Year update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2106
2005-02-10 10:21:12 +00:00
Peter Veenstra
3ec0837030 Add startmapper and update documentation
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1957
2004-09-09 10:36:45 +00:00
Peter Veenstra
ca409fd57c Typo in preamble
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1899
2004-08-04 09:12:57 +00:00
Peter Veenstra
8f472fb66a Some sanity checks on strings for the cdrom.
Changed E_Exit to warning when direct copyflag is used.
Added printscreen/scrollock/pause to the keymapper.
Ignoring printscreen and pause in keyboard (can be used to map special keys
to).
Added some binds so you can bind special keys to them (MK_scrolllock and
MK_pause).
Updated headers to support those new keys and MK_keys.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1861
2004-06-30 14:40:08 +00:00
Sjoerd van der Berg
c94459d6d3 New mapper changes
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1819
2004-06-10 07:23:01 +00:00