WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: dosbox--arrow keys don`t work  (Read 13404 times)

Offline alanl

  • Newbie
  • *
  • Posts: 48
dosbox--arrow keys don`t work
« on: April 30, 2009, 11:48:45 PM »
I`m trying to run this baseball game(SBSBaseball) and I can`t
get the arrow keys to work.   This is on both 1.3 & 1.4.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
The only barriers that can stop you are the ones you create yourself.

Offline alanl

  • Newbie
  • *
  • Posts: 48
Re: dosbox--arrow keys don`t work
« Reply #2 on: May 13, 2009, 12:26:00 AM »
I tried all the suggestions but nothing worked.  I made a .dosboxrc in tc  as shown in your post-didn`t work.
I booted without dosbox and then copied it from slackware with the 5 libs it wanted.  Worked OK but
no arrow keys.  I booted without SDL and then copied from slack with 1 lib-worked but with no arrow
keys. 

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: dosbox--arrow keys don`t work
« Reply #3 on: May 13, 2009, 01:07:58 AM »
actually i have spent so much time doing things with 2.x that i never got back to trying to use the keymap to see if it fixed the issue with dosbox. before (in 1.x) i did not have to use a keymap for qemu or dosbox because i use a us keyboard. in qemu the solution is very simple, add "-k en-us" to the already lengthy list of parameters typical of qemu use- so i've been using qemu with no problem.

i don't use dosbox as often so it didn't come up again. based on this thread i wonder if dosbox is fixable. i believe though, it is. besides i have enough things to worry about without assuming that dosbox is unfixable until i try.

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: dosbox--arrow keys don`t work
« Reply #4 on: May 13, 2009, 10:25:00 AM »
For me the arrows keys works OK. My command line is:

Quote
dosbox -conf ~/.dosboxconf -lang ~/.dosboxlang -c programXYZ.exe

where .dosboxconf and .dosboxlang are:

.dosboxconf:
Quote
[sdl]
# fullscreen -- Start dosbox directly in fullscreen.
# fulldouble -- Use double buffering in fullscreen.
# fullfixed -- Don't resize the screen when in fullscreen.
# fullresolution -- What resolution to use for fullscreen, use together with fullfixed.
# output -- What to use for output: surface,overlay,opengl,openglnb.
# hwscale -- Extra scaling of window if the output device supports hardware scaling.
# autolock -- Mouse will automatically lock, if you click on the screen.
# sensitiviy -- Mouse sensitivity.
# waitonerror -- Wait before closing the console if dosbox has an error.
# priority -- Priority levels for dosbox: lower,normal,higher,highest.
#             Second entry behind the comma is for when dosbox is not focused/minimized.
# mapperfile -- File used to load/save the key/event mappings from.

fullscreen=false
fulldouble=false
fullfixed=false
fullresolution=1024x768
output=surface
hwscale=1.00
autolock=true
sensitivity=100
waitonerror=true
priority=higher,normal
mapperfile=mapper.txt

[dosbox]
# language -- Select another language file.
# memsize -- Amount of memory dosbox has in megabytes.
# machine -- The type of machine tries to emulate:hercules,cga,tandy,vga.
# captures -- Directory where things like wave,midi,screenshot get captured.

language=es
machine=vga
captures=capture
memsize=16

[render]
# frameskip -- How many frames dosbox skips before drawing one.
# aspect -- Do aspect correction.
# scaler -- Scaler used to enlarge/enhance low resolution modes.
#           Supported are none,normal2x,advmame2x,advmame3x,advinterp2x,interp2x,tv2x.

frameskip=0
aspect=false
scaler=normal2x

[cpu]
# core -- CPU Core used in emulation: simple,normal,full,dynamic.
# cycles -- Amount of instructions dosbox tries to emulate each millisecond.
#           Setting this higher than your machine can handle is bad!
# cycleup   -- Amount of cycles to increase/decrease with keycombo.
# cycledown    Setting it lower than 100 will be a percentage.

core=normal
cycles=3000
cycleup=500
cycledown=20

[mixer]
# nosound -- Enable silent mode, sound is still emulated though.
# rate -- Mixer sample rate, setting any devices higher than this will
#         probably lower their sound quality.
# blocksize -- Mixer block size, larger blocks might help sound stuttering
#              but sound will also be more lagged.
# prebuffer -- How many milliseconds of data to keep on top of the blocksize.

nosound=false
rate=22050
blocksize=2048
prebuffer=10

[midi]
# mpu401      -- Enable MPU-401 Emulation.
# intelligent -- Operate in Intelligent mode.
# device      -- Device that will receive the MIDI data from MPU-401.
#                This can be default,alsa,oss,win32,coreaudio,none.
# config      -- Special configuration options for the device.

mpu401=true
intelligent=true
device=default
config=

[sblaster]
# type -- Type of sblaster to emulate:none,sb1,sb2,sbpro1,sbpro2,sb16.
# base,irq,dma,hdma -- The IO/IRQ/DMA/High DMA address of the soundblaster.
# mixer -- Allow the soundblaster mixer to modify the dosbox mixer.
# oplmode -- Type of OPL emulation: auto,cms,opl2,dualopl2,opl3.
#            On auto the mode is determined by sblaster type.
# oplrate -- Sample rate of OPL music emulation.

type=sb16
base=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
oplrate=22050

[gus]
# gus -- Enable the Gravis Ultrasound emulation.
# base,irq1,irq2,dma1,dma2 -- The IO/IRQ/DMA addresses of the
#            Gravis Ultrasound. (Same IRQ's and DMA's are OK.)
# rate -- Sample rate of Ultrasound emulation.
# ultradir -- Path to Ultrasound directory.  In this directory
#             there should be a MIDI directory that contains
#             the patch files for GUS playback.  Patch sets used
#             with Timidity should work fine.

gus=true
rate=22050
base=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:\ULTRASND

[speaker]
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
#              Tandysound emulation is present if machine is set to tandy.
# disney -- Enable Disney Sound Source emulation.

pcspeaker=true
pcrate=22050
tandyrate=22050
disney=true

[bios]
# Nothing to setup yet!


[dos]
# xms -- Enable XMS support.
# ems -- Enable EMS support.

xms=true
ems=true
keyboardlayout=es

[modem]
# modem -- Enable virtual modem emulation.
# comport -- COM Port modem is connected to.
# listenport -- TCP Port the modem listens on for incoming connections.

modem=false
comport=2
listenport=23

[ipx]
# ipx -- Enable ipx over UDP/IP emulation.

ipx=false

[autoexec]
# Lines in this section will be run at startup.
mount d /xxxx/F/xxx
mount c /yyyy/F/yyy
mount e /zzzz/F/zzz
d:

continue...


Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: dosbox--arrow keys don`t work
« Reply #5 on: May 13, 2009, 10:26:02 AM »
.dosboxlang:
Quote
:SDL_CONFIGFILE_HELP
fullscreen -- Start dosbox directly in fullscreen.
fulldouble -- Use double buffering in fullscreen.
fullfixed -- Don't resize the screen when in fullscreen.
fullresolution -- What resolution to use for fullscreen, use together with fullfixed.
output -- What to use for output: surface,overlay,opengl,openglnb.
hwscale -- Extra scaling of window if the output device supports hardware scaling.
autolock -- Mouse will automatically lock, if you click on the screen.
sensitiviy -- Mouse sensitivity.
waitonerror -- Wait before closing the console if dosbox has an error.
priority -- Priority levels for dosbox: lower,normal,higher,highest.
            Second entry behind the comma is for when dosbox is not focused/minimized.
mapperfile -- File used to load/save the key/event mappings from.
.
:DOSBOX_CONFIGFILE_HELP
language -- Select another language file.
memsize -- Amount of memory dosbox has in megabytes.
machine -- The type of machine tries to emulate:hercules,cga,tandy,vga.
captures -- Directory where things like wave,midi,screenshot get captured.
.
:RENDER_CONFIGFILE_HELP
frameskip -- How many frames dosbox skips before drawing one.
aspect -- Do aspect correction.
scaler -- Scaler used to enlarge/enhance low resolution modes.
          Supported are none,normal2x,advmame2x,advmame3x,advinterp2x,interp2x,tv2x.
.
:CPU_CONFIGFILE_HELP
core -- CPU Core used in emulation: simple,normal,full,dynamic.
cycles -- Amount of instructions dosbox tries to emulate each millisecond.
          Setting this higher than your machine can handle is bad!
cycleup   -- Amount of cycles to increase/decrease with keycombo.
cycledown    Setting it lower than 100 will be a percentage.
.
:MIXER_CONFIGFILE_HELP
nosound -- Enable silent mode, sound is still emulated though.
rate -- Mixer sample rate, setting any devices higher than this will
        probably lower their sound quality.
blocksize -- Mixer block size, larger blocks might help sound stuttering
             but sound will also be more lagged.
prebuffer -- How many milliseconds of data to keep on top of the blocksize.
.
:MIDI_CONFIGFILE_HELP
mpu401      -- Enable MPU-401 Emulation.
intelligent -- Operate in Intelligent mode.
device      -- Device that will receive the MIDI data from MPU-401.
               This can be default,alsa,oss,win32,coreaudio,none.
config      -- Special configuration options for the device.
.
:SBLASTER_CONFIGFILE_HELP
type -- Type of sblaster to emulate:none,sb1,sb2,sbpro1,sbpro2,sb16.
base,irq,dma,hdma -- The IO/IRQ/DMA/High DMA address of the soundblaster.
mixer -- Allow the soundblaster mixer to modify the dosbox mixer.
oplmode -- Type of OPL emulation: auto,cms,opl2,dualopl2,opl3.
           On auto the mode is determined by sblaster type.
oplrate -- Sample rate of OPL music emulation.
.
:GUS_CONFIGFILE_HELP
gus -- Enable the Gravis Ultrasound emulation.
base,irq1,irq2,dma1,dma2 -- The IO/IRQ/DMA addresses of the
           Gravis Ultrasound. (Same IRQ's and DMA's are OK.)
rate -- Sample rate of Ultrasound emulation.
ultradir -- Path to Ultrasound directory.  In this directory
            there should be a MIDI directory that contains
            the patch files for GUS playback.  Patch sets used
            with Timidity should work fine.
.
:SPEAKER_CONFIGFILE_HELP
pcspeaker -- Enable PC-Speaker emulation.
pcrate -- Sample rate of the PC-Speaker sound generation.
tandyrate -- Sample rate of the Tandy 3-Voice generation.
             Tandysound emulation is present if machine is set to tandy.
disney -- Enable Disney Sound Source emulation.
.
:DOS_CONFIGFILE_HELP
xms -- Enable XMS support.
ems -- Enable EMS support.
.
:MODEM_CONFIGFILE_HELP
modem -- Enable virtual modem emulation.
comport -- COM Port modem is connected to.
listenport -- TCP Port the modem listens on for incoming connections.
.
:IPX_CONFIGFILE_HELP
ipx -- Enable ipx over UDP/IP emulation.
.
:AUTOEXEC_CONFIGFILE_HELP
Lines in this section will be run at startup.
.
:PROGRAM_CONFIG_FILE_ERROR
Can't open file %s
.
:PROGRAM_CONFIG_USAGE
Config tool:
Use -writeconf filename to write the current config.
Use -writelang filename to write the current language strings.
.
:DISNEY_CONFIGFILE_HELP
Nothing to setup yet!
.
:BIOS_CONFIGFILE_HELP
Nothing to setup yet!
.
:PROGRAM_MOUNT_CDROMS_FOUND
CDROMs found: %d
.
:PROGRAM_MOUNT_STATUS_2
Drive %c is mounted as %s
.
:PROGRAM_MOUNT_STATUS_1
Current mounted drives are:
.
:PROGRAM_MOUNT_ERROR_1
Directory %s doesn't exist.
.
:PROGRAM_MOUNT_ERROR_2
%s isn't a directory
.
:PROGRAM_MOUNT_ILL_TYPE
Illegal type %s
.
:PROGRAM_MOUNT_ALLREADY_MOUNTED
Drive %c already mounted with %s
.
:PROGRAM_MOUNT_USAGE
Usage MOUNT Drive-Letter Local-Directory
So a MOUNT c c:\windows mounts windows directory as the c: drive in DOSBox
.
:PROGRAM_MOUNT_UMOUNT_CURRENT
You can not unMOUNT the active drive.
.
:PROGRAM_MOUNT_UMOUNT_NOT_MOUNTED
Drive %c isn't mounted.
.
:PROGRAM_MOUNT_UMOUNT_SUCCES
Drive %c has succesfully been removed.
.
:PROGRAM_MOUNT_UMOUNT_NO_VIRTUAL
Virtual Drives can not be unMOUNTed.
.
:PROGRAM_MEM_CONVEN
%10d Kb free conventional memory
.
:PROGRAM_MEM_EXTEND
%10d Kb free extended memory
.
:PROGRAM_MEM_EXPAND
%10d Kb free expanded memory
.
:PROGRAM_LOADFIX_ALLOC
%d kb allocated.
.
:PROGRAM_LOADFIX_DEALLOC
%d kb freed.
.
:PROGRAM_LOADFIX_DEALLOCALL
Used memory freed.
.
:PROGRAM_LOADFIX_ERROR
Memory allocation error.
.
:MSCDEX_SUCCESS
MSCDEX installed.
.
:MSCDEX_ERROR_MULTIPLE_CDROMS
MSCDEX: Failure: Drive-letters of multiple CDRom-drives have to be continuous.
.
:MSCDEX_ERROR_NOT_SUPPORTED
MSCDEX: Failure: Not yet supported.
.
:MSCDEX_ERROR_PATH
MSCDEX: Failure: Path not valid.
.
:MSCDEX_TOO_MANY_DRIVES
MSCDEX: Failure: Too many CDRom-drives (max: 5). MSCDEX Installation failed.
.
:MSCDEX_LIMITED_SUPPORT
MSCDEX: Mounted subdirectory: limited support.
.
:MSCDEX_UNKNOWN_ERROR
MSCDEX: Failure: Unknown error.
.
:PROGRAM_RESCAN_SUCCESS
Drive cache cleared.
.
:PROGRAM_INTRO
Welcome to DOSBox, an x86 emulator with sound and graphics.
DOSBox creates a shell for you which looks like old plain DOS.

Here are some commands to get you started:
Before you can use the files located on your own filesystem,
You have to mount the directory containing the files.
For Windows:
mount c c:\dosprog will create a C drive in DOSBox with c:\dosprog as contents.

For other platforms:
mount c /home/user/dosprog will do the same.

When the mount has succesfully completed you can type c: to go to your freshly
mounted C-drive. Typing dir there will show its contents. cd will allow you to
enter a directory (recognised by the [] in a directory listing).
You can run programs/files which end with .exe .bat and .com.

For information about CD-ROM support type intro cdrom

DOSBox will stop/exit without a warning if an error occured!
.
:PROGRAM_INTRO_CDROM
How to mount a Real/Virtual CD-ROM Drive in DOSBox:
DOSBox provides CD-ROM emulation on several levels.

The basic level works on all CD-ROM drives and normal directories.
It installs MSCDEX and marks the files read-only.
Usually this is enough for most games:
mount d D:\ -t cdrom   or   mount d C:\example -t cdrom
If it doesn't work you might have to tell DOSBox the label of the CD-ROM:
mount d C:\example -t cdrom -label CDLABEL

The next level adds some low-level support.
Therefore only works on CD-ROM drives:
mount d D:\ -t cdrom -usecd 0

The last level of support depends on your Operating System:
For Windows 2000, Windows XP and Linux:
mount d D:\ -t cdrom -usecd 0 -ioctl
For Windows 9x with a ASPI layer installed:
mount d D:\ -t cdrom -usecd 0 -aspi

Replace D:\ with the location of your CD-ROM.
Replace the 0 in -usecd 0 with the number reported for your CD-ROM if you type:
mount -cd.
:PROGRAM_BOOT_NOT_EXIST
Bootdisk file does not exist.  Failing.
.
:PROGRAM_BOOT_NOT_OPEN
Cannot open bootdisk file.  Failing.
.
:PROGRAM_BOOT_PRINT_ERROR
This command boots DosBox from either a floppy or hard disk image.

For this command, one can specify a succession of floppy disks swappable
by pressing Ctrl-F4, and -l specifies the mounted drive to boot from.  If
no drive letter is specified, this defaults to booting from the A drive.
The only bootable drive letters are A, C, and D.  For booting from a hard
drive (C or D), the image should have already been mounted using the
IMGMOUNT command.

The syntax of this command is:

BOOT [diskimg1.img diskimg2.img] [-l driveletter]
.
:PROGRAM_BOOT_UNABLE
Unable to boot off of drive %c.
:PROGRAM_BOOT_IMAGE_OPEN
Opening image file: %s
.
:PROGRAM_BOOT_IMAGE_NOT_OPEN
Cannot open %s.
:PROGRAM_BOOT_BOOT
Booting from drive %c...
.
:PROGRAM_IMGMOUNT_SPECIFY_DRIVE
Must specify drive letter to mount image at.
.
:PROGRAM_IMGMOUNT_SPECIFY2
Must specify drive number (0 or 3) to mount image at (0,1=fda,fdb;2,3=hda,hdb).
.
:PROGRAM_IMGMOUNT_SPECIFY_GEOMETRY
For CD-ROM images:   imgmount Drive-Letter location-of-image -t iso

For hardrive images: Must specify drive geometry for hard drives:
bytes_per_sector, sectors_per_cylinder, heads_per_cylinder, cylinder_count.
.
:PROGRAM_IMGMOUNT_FORMAT_UNSUPPORTED
Format "%s" is unsupported. Specify "fat" or "iso" or "none".
.
:PROGRAM_IMGMOUNT_SPECIFY_FILE
Must specify file-image to mount.
.
:PROGRAM_IMGMOUNG_FILE_NOT_FOUND
Image file not found.
.
:PROGRAM_IMGMOUNG_MOUNT
To mount directories, use the MOUNT command, not the IMGMOUNT command.
.
:PROGRAM_IMGMOUNT_ALLREADY_MOUNTED
Drive already mounted at that letter.
.
:PROGRAM_IMGMOUNT_CANT_CREATE
Can't create drive from file.
.
:PROGRAM_IMGMOUNT_MOUNT_NUMBER
Drive number %d mounted as %s
.
:SHELL_ILLEGAL_PATH
Illegal Path.
.
:SHELL_CMD_HELP
supported commands are:
.
:SHELL_CMD_ECHO_ON
ECHO is on.
.
:SHELL_CMD_ECHO_OFF
ECHO is off.
.
:SHELL_ILLEGAL_SWITCH
Illegal switch: %s.
.
:SHELL_CMD_CHDIR_ERROR
Unable to change to: %s.
.
:SHELL_CMD_MKDIR_ERROR
Unable to make: %s.
.
:SHELL_CMD_RMDIR_ERROR
Unable to remove: %s.
.
:SHELL_CMD_DEL_ERROR
Unable to delete: %s.
.
:SHELL_SYNTAXERROR
The syntax of the command is incorrect.
.
:SHELL_CMD_SET_NOT_SET
Environment variable %s not defined.
.
:SHELL_CMD_SET_OUT_OF_SPACE
Not enough environment space left.
.
:SHELL_CMD_IF_EXIST_MISSING_FILENAME
IF EXIST: Missing filename.
.
:SHELL_CMD_IF_ERRORLEVEL_MISSING_NUMBER
IF ERRORLEVEL: Missing number.
.
:SHELL_CMD_IF_ERRORLEVEL_INVALID_NUMBER
IF ERRORLEVEL: Invalid number.
.
:SHELL_CMD_GOTO_MISSING_LABEL
No label supplied to GOTO command.
.
:SHELL_CMD_GOTO_LABEL_NOT_FOUND
GOTO: Label %s not found.
.
:SHELL_CMD_FILE_NOT_FOUND
File %s not found.
.
:SHELL_CMD_FILE_EXISTS
File %s already exists.
.
:SHELL_CMD_DIR_INTRO
Directory of %s.
.
:SHELL_CMD_DIR_BYTES_USED
%5d File(s) %17s Bytes.
.
:SHELL_CMD_DIR_BYTES_FREE
%5d Dir(s)  %17s Bytes free.
.
:SHELL_EXECUTE_DRIVE_NOT_FOUND
Drive %c does not exist!
You must mount it first. Type intro for more information.
.
:SHELL_EXECUTE_ILLEGAL_COMMAND
Illegal command: %s.
.
:SHELL_CMD_PAUSE
Press any key to continue.
.
:SHELL_CMD_PAUSE_HELP
Waits for 1 keystroke to continue.
.
:SHELL_CMD_COPY_FAILURE
Copy failure : %s.
.
:SHELL_CMD_COPY_SUCCESS
   %d File(s) copied.
.
:SHELL_CMD_SUBST_NO_REMOVE
Removing drive not supported. Doing nothing.
.
:SHELL_CMD_SUBST_FAILURE
SUBST failed. You either made an error in your commandline or the target drive is already used.
It's only possible to use SUBST on Local drives.
:SHELL_STARTUP
��������������������������������������������������������������������ͻ
� DOSBox Shell v0.63                                                 �
� DOSBox runs real and protected mode games.                         �
� For supported shell commands type: HELP                            �
� For a short introduction type: INTRO                               �
�                                                                    �
� If you want more speed, try ctrl-F8 and ctrl-F12.                  �
� To activate the keymapper ctrl-F1.                                 �
� For more information read the README file in the DOSBox directory. �
�                                                                    �
� HAVE FUN!                                                          �
� The DOSBox Team                                                    �
��������������������������������������������������������������������ͼ
.
:SHELL_CMD_CHDIR_HELP
Change Directory.
.
:SHELL_CMD_CLS_HELP
Clear screen.
.
:SHELL_CMD_DIR_HELP
Directory View.
.
:SHELL_CMD_ECHO_HELP
Display messages and enable/disable command echoing.
.
:SHELL_CMD_EXIT_HELP
Exit from the shell.
.
:SHELL_CMD_HELP_HELP
Show help.
.
:SHELL_CMD_MKDIR_HELP
Make Directory.
.
:SHELL_CMD_RMDIR_HELP
Remove Directory.
.
:SHELL_CMD_SET_HELP
Change environment variables.
.
:SHELL_CMD_IF_HELP
Performs conditional processing in batch programs.
.
:SHELL_CMD_GOTO_HELP
Jump to a labeled line in a batch script.
.
:SHELL_CMD_TYPE_HELP
Display the contents of a text-file.
.
:SHELL_CMD_REM_HELP
Add comments in a batch file.
.
:SHELL_CMD_NO_WILD
This is a simple version of the command, no wildcards allowed!
.
:SHELL_CMD_RENAME_HELP
Renames files.
.
:SHELL_CMD_DELETE_HELP
Removes files.
.
:SHELL_CMD_COPY_HELP
Copy files.
.
:SHELL_CMD_CALL_HELP
Start a batch file from within another batch file.
.
:SHELL_CMD_SUBST_HELP
Assign an internal directory to a drive.
.
:SHELL_CMD_LOADHIGH_HELP
Run a program. For batch file compatibility only.
.
:SHELL_CMD_CHOICE_HELP
Waits for a keypress and sets ERRORLEVEL.
.
:SHELL_CMD_ATTRIB_HELP
Does nothing. Provided for compatibility.
.
:SHELL_CMD_PATH_HELP
Provided for compatibility.
.

in the first file I put  "language=es"
and "keyboardlayout=es"
because this is my language, substitute it with yours
and in the last section put your directories as it where partitions:

[autoexec]
# Lines in this section will be run at startup.
mount d /xxxxx/F/xxx
mount c /yyyyyy/F/yyy
mount e /zzzzzzz/F/zzz
d:



Hope it helps.

Offline alanl

  • Newbie
  • *
  • Posts: 48
Re: dosbox--arrow keys don`t work
« Reply #6 on: May 13, 2009, 11:48:03 PM »
You must really like working with computers!  I just read a bit of that and I
was lost.  It would be quicker just to use Dos. 
I just discovered that the arrow keys on the number key pad are working
and alt & control work as up-page and down-page!!