Commit Graph

3526 Commits

Author SHA1 Message Date
riccardom 65151a3094 Cleanup the code a bit, make some loops more natural and
merge two duplicate functions.

Again the compiler does not care about the changes :)
2010-05-09 15:42:40 +00:00
riccardom e1f7f155a2 Cleanup REG_IME cases in MMU.cpp to have a correct coding
style and a bit more compact code. No functional changes,
compiled object is the same.
2010-05-09 15:29:52 +00:00
riccardom d25ec2d119 Apply patch #2998037 from noodlebox:
1) Larger dead zone for analog controls.  Also fixed possible
 issue where negative side of dead zone might not be applied.
 (right bitwise shift applied to negative integers, implementation seems to vary)
2) Analog controls can now be assigned to buttons, and
 non-analog controls can now be assigned to the directional controls.
3) Differentiates between positive and negative movement
 for analog controls.
4) In the GTK and Glade ports, directional buttons can now
 be set independently of their "twins".
5) Hat/POV/D-Pad controls are usable now.
6) Differentiates between multiple controllers.
7) Slightly modified method of storing joypad key codes, in
 a way similar to VBA-M's method of configging controls, though
 I kept the codes as u16's.  The way it's arranged now will allow
 for up to 16 unique joypads, and up to 128 axes, 64 POV hats,
 and 256 Buttons per joypad, which should probably be enough.
 The method of determining a key code is explained in ctrlssdl.cpp.
 Basically, it starts with 0x1000 * joypad_index.
 For buttons, add 0x200 + button_index.
 For hats, add 0x100 + 4 * hat_index + (0, 1, 2, or 3 for R, L, U, D). 
 For axes, add 2 * axis_index + (0 or 1 for negative or positive). 
 Maybe there's a way to get the config file to save these values in
 a hexadecimal representation for easier editing, but I didn't really
 mess with the configs.

So, the reason I decided to try this was that I was having some issues
with my wired XBox 360 controller in the Linux GTK, Glade, and CLI ports
(The controller works fine otherwise).
It seemed to be very sensitive, so it was impossible to "zero" the axes,
which leads to constantly scrolling through menus, etc.  The slightest
touch would trigger the input.  Also wanted to be able to use the D-Pad
and Analog triggers for something useful. The distinction between multiple
"joypads" should also help anyone with any other odd input devices being
recognized, like accelerometers. 

[rm: removed clear_events() from ctrlsdl.cpp since it is unused ]
2010-05-09 15:21:17 +00:00
riccardom fb7ebf22f4 Remove redundant declaration of void armcpu_exception(armcpu_t*, u32)
we already have in armcpu.h.
2010-05-09 15:10:12 +00:00
riccardom a84b35c819 Remove write only variable old_val. 2010-05-09 14:50:49 +00:00
mtabachenko 39692de722 - fix typo in MC READSTATUS register; 2010-05-08 17:26:57 +00:00
riccardom 20ed74f6d5 Fix click and drag, patch #2998460 from noodlebox. 2010-05-08 16:35:48 +00:00
riccardom 80625f4229 Fix compilation using the right variable name. 2010-05-08 16:27:54 +00:00
normmatt234 1ff0161d4e Add support for loading .srl files
Fix a few bugs in spi handling.
Update vs2010 project file.
2010-05-07 09:57:41 +00:00
zeromus d6cc212f0f fix gdb stub in trunk, make wifi warning more severe, fix some occasional link errors, and some other cleanup 2010-05-04 19:44:38 +00:00
zeromus dae6fcbd0f add libelf and libdwarf for potential fun times. none of the elf examples were working for me so i didnt even get a chance to test dwarf, but i dont think the problem is with the libs 2010-04-29 20:12:21 +00:00
mtabachenko 8c4d4bb3a1 core:
- a bit fixes on THUMB opcodes;
2010-04-26 22:33:08 +00:00
mtabachenko d6b75e99ac core:
- fix bug in Geometry Engine when in packed commands latest command is undefined (bug #2973143);
2010-04-25 17:53:47 +00:00
mtabachenko 0ca0356432 core:
- fix SMLABB instruction;
2010-04-25 16:02:18 +00:00
zeromus de4ff111bb fix obviously broken code in the RTC dayofweek calculation. Is it correct now? Not sure, but i think it fixes animal crossing at least 2010-04-24 20:10:24 +00:00
mtabachenko f535f9ac58 - fix overflow flag in ADCS/SBCS/RSCS; 2010-04-24 16:47:53 +00:00
riccardom fc0c459391 Add missing parens. 2010-04-24 15:55:21 +00:00
riccardom ce8d525928 Add missing include header. 2010-04-24 15:46:40 +00:00
riccardom d2434c3bd9 strdup needs string.h. 2010-04-24 14:31:42 +00:00
riccardom 7c420765a9 Fix "suggest parentheses around comparison in operand of ‘&’"
warnings.
2010-04-24 14:28:16 +00:00
mtabachenko ed419e6a3a core:
- a lot work on fix CPU emulation but not finished yet. Report to bugtracker if it break something.
2010-04-24 13:37:29 +00:00
zeromus 53a76b5be5 win32: save type menu was completely broken. awesome. 2010-04-24 07:24:18 +00:00
zeromus 882d05895e more chinese gobbledegook 2010-04-24 07:23:37 +00:00
zeromus bf2c15b24d critical bugfix!@! 2010-04-24 06:23:06 +00:00
zeromus c2ecb37c26 commit whatever pokefan did to chinese translation 2010-04-24 05:50:01 +00:00
zeromus 68588dd964 piano controller emulation. maybe youll want to use the mouse anyway once you try the game... 2010-04-24 00:54:44 +00:00
zeromus a9b186acb3 more realistic exception handling 2010-04-23 03:31:55 +00:00
zeromus 4069c5a517 win32: add shift+ptrscrn to capture 256x384 to clipboard with no extra info 2010-04-22 21:10:12 +00:00
zeromus 6e4af3f8b0 rasterize: edge mark colors were too dark 2010-04-22 20:45:12 +00:00
riccardom e8bd687f08 Make log3D static and put it under the same ifdef which
surround its usage.
2010-04-21 20:18:56 +00:00
adelikat 6b3438925c Win32 Drag & Drop - if .dsm file is dropped with no ROM loaded prompt for one. 2010-04-21 14:41:43 +00:00
normmatt234 77934940e2 update vs2010 project. 2010-04-21 11:04:30 +00:00
luigi__ d3b329ec7f tiny mistake again. 2010-04-21 10:27:25 +00:00
luigi__ fe2e22962a r3550, again :P 2010-04-21 10:20:12 +00:00
riccardom d727d83b5b WIFI_WFCWarning is supposed to be false as default. 2010-04-21 09:08:49 +00:00
zeromus 4393a347e3 B I T 2010-04-21 07:01:39 +00:00
zeromus fa8b1c7483 tweakin tha changelogs 2010-04-21 06:55:16 +00:00
zeromus 2ac4dfe8e6 merge r3563 to trunk and unnecessarily touch 1000 files 2010-04-21 06:34:19 +00:00
zeromus e4c49d8de9 merge r3561 from release branch 2010-04-21 04:32:19 +00:00
riccardom 96a47a4af9 Enjoy OO in driver instead of the same old boring ifdefery. 2010-04-20 22:42:50 +00:00
riccardom 8c80050dbe Fixup indentation. 2010-04-20 22:40:13 +00:00
riccardom 9ff4a176cf Fix preprocessor check for xbox. 2010-04-20 22:34:27 +00:00
zeromus 197273887f win32: clean up winpcap lib references (i.e. remove them) in all vcproj 2010-04-20 21:36:41 +00:00
luigi__ 02bfeac444 RIP, WinPCap libs (using GetProcAddress() since a while now) 2010-04-20 21:35:27 +00:00
zeromus df589d321a redefine elementary mathematics 2010-04-20 21:06:45 +00:00
luigi__ 07d7d2c01d MMU: wifi registers/RAM are only in range 04800000-0480FFFF, not 04800000-04FFFFFF. 2010-04-20 19:52:04 +00:00
luigi__ 455e2c7080 Memview: prevent modification of wifi registers and RAM. 2010-04-20 19:33:41 +00:00
riccardom cb6f0c0dfd Warn if --enable-wifi is set but libpcap is not available. 2010-04-20 18:58:38 +00:00
riccardom 42f9017627 Set infrastructure as default wifi mode. 2010-04-20 17:29:35 +00:00
luigi__ 5a4f5f9614 Wifi: fix potential endian issues on bigendian in the DNS parsing code. 2010-04-20 17:21:31 +00:00