ISpElement_GetConfigurationInfo
You can use the ISpElement_GetConfigurationInfo function to get element kind-specific information for an element--for example, whether a directional pad has eight directions or four or whether to use a certain button first when matching game input requirements with controls. InputSprocket stores this type of information in configuration information structures--for example, theISpButtonConfigurationInfo,ISpDPadConfigurationInfo, andISpAxisConfigurationInfostructures, which are built-in.
OSStatus ISpElement_GetConfigurationInfo ( const ISpElementReference inElement, UInt32 buflen, void *configInfo);
inElement- A reference to the element whose element kind-specific information you want to get.
buflen- The length of the buffer for holding the information. The size of the configuration structures varies by element kind.
configInfo- On exit, a pointer to the buffer containing the data.
- function result
- A result code.
DESCRIPTION
TheISpElement_GetConfigurationInfofunction returns element kind-specific information for the element specified in theinElementparameter and stores it in the memory pointed to by theconfigInfoparameter. You pass in the length of the buffer to hold the data in thebuflenparameter. If the buffer is not long enough to hold the data, theISpElement_GetConfigurationInfofunction copies as many bytes of data as fit and returns an error.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help