~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/emu/input.h

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
584
584
void input_init(running_machine *machine);
585
585
 
586
586
/* enable or disable a device class */
587
 
void input_device_class_enable(input_device_class devclass, UINT8 enable);
 
587
void input_device_class_enable(running_machine *machine, input_device_class devclass, UINT8 enable);
588
588
 
589
589
/* is a device class enabled? */
590
 
UINT8 input_device_class_enabled(input_device_class devclass);
 
590
UINT8 input_device_class_enabled(running_machine *machine, input_device_class devclass);
591
591
 
592
592
/* configure default joystick maps */
593
 
int input_device_set_joystick_map(int devindex, const char *mapstring);
 
593
int input_device_set_joystick_map(running_machine *machine, int devindex, const char *mapstring);
594
594
 
595
595
 
596
596
/* ----- OSD configuration and access ----- */
606
606
/* ----- state queries ----- */
607
607
 
608
608
/* return the value of a particular input code */
609
 
INT32 input_code_value(input_code code);
 
609
INT32 input_code_value(running_machine *machine, input_code code);
610
610
 
611
611
/* return TRUE if the given input code has been pressed */
612
 
INT32 input_code_pressed(input_code code);
 
612
INT32 input_code_pressed(running_machine *machine, input_code code);
613
613
 
614
614
/* same as above, but returns TRUE only on the first call after an off->on transition */
615
 
INT32 input_code_pressed_once(input_code code);
 
615
INT32 input_code_pressed_once(running_machine *machine, input_code code);
616
616
 
617
617
/* translates an input_item_id to an input_code */
618
 
input_code input_code_from_input_item_id(input_item_id itemid);
 
618
input_code input_code_from_input_item_id(running_machine *machine, input_item_id itemid);
619
619
 
620
620
/* poll for any switch input, optionally resetting internal memory */
621
 
input_code input_code_poll_switches(int reset);
 
621
input_code input_code_poll_switches(running_machine *machine, int reset);
622
622
 
623
623
/* poll for any keyboard switch input, optionally resetting internal memory */
624
 
input_code input_code_poll_keyboard_switches(int reset);
 
624
input_code input_code_poll_keyboard_switches(running_machine *machine, int reset);
625
625
 
626
626
/* poll for any axis input, optionally resetting internal memory */
627
 
input_code input_code_poll_axes(int reset);
 
627
input_code input_code_poll_axes(running_machine *machine, int reset);
628
628
 
629
629
 
630
630
 
631
631
/* ----- strings and tokenization ----- */
632
632
 
633
633
/* generate the friendly name of an input code, returning the length (buffer can be NULL) */
634
 
astring *input_code_name(astring *buffer, input_code code);
 
634
astring *input_code_name(running_machine *machine, astring *buffer, input_code code);
635
635
 
636
636
/* convert an input code to a token, returning the length (buffer can be NULL) */
637
 
astring *input_code_to_token(astring *buffer, input_code code);
 
637
astring *input_code_to_token(running_machine *machine, astring *buffer, input_code code);
638
638
 
639
639
/* convert a token back to an input code */
640
 
input_code input_code_from_token(const char *_token);
 
640
input_code input_code_from_token(running_machine *machine, const char *_token);
 
641
 
 
642
 
 
643
 
 
644
/* ----- debugging utilities ----- */
 
645
 
 
646
/* return TRUE if the given input code has been pressed */
 
647
INT32 debug_global_input_code_pressed(input_code code);
641
648
 
642
649
 
643
650
#endif  /* __INPUT_H__ */